36#ifdef INCLUDE_CMD_DATE
41 {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31},
42 {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}
73 *lpwValue = *lpwValue * 10 + **
s -
_T(
'0');
157 d.wYear = 1900 +
d.wYear;
159 d.wYear = 2000 +
d.wYear;
162 leap = (!(
d.wYear % 4) && (
d.wYear % 100)) || !(
d.wYear % 400);
164 if ((
d.wMonth >= 1 &&
d.wMonth <= 12) &&
165 (
d.wDay >= 1 &&
d.wDay <=
awMonths[leap][
d.wMonth]) &&
166 (
d.wYear >= 1980 &&
d.wYear <= 2099))
182 INT nDateString = -1;
202 if ((*
arg[
i] !=
_T(
'/')) && (nDateString == -1))
206 if (nDateString == -1)
220 if (nDateString == -1)
227 while (*szDate && szDate[
_tcslen(szDate) - 1] <
_T(
' '))
LPTSTR GetDateString(VOID)
VOID ConOutResPaging(BOOL StartPaging, UINT resID)
#define ConErrResPuts(uID)
#define ConOutPrintf(szStr,...)
static BOOL ReadNumber(LPTSTR *s, LPWORD lpwValue)
static BOOL ParseDate(LPTSTR s)
static VOID PromptDateString(VOID)
INT cmd_date(LPTSTR param)
static BOOL ReadSeparator(LPTSTR *s)
static WORD awMonths[2][13]
#define STRING_DATE_ERROR
#define STRING_DATE_HELP2
#define STRING_DATE_HELP3
#define STRING_DATE_HELP4
#define STRING_DATE_HELP1
static VOID freep(LPSTR *p)
static LPSTR * split(LPSTR s, LPINT args)
BOOL WINAPI SetLocalTime(IN CONST SYSTEMTIME *lpSystemTime)
VOID WINAPI GetLocalTime(OUT LPSYSTEMTIME lpSystemTime)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static VOID ConInString(LPWSTR lpInput, DWORD dwLength)
#define ConOutResPrintf(uID,...)
#define ConOutResPuts(uID)