#include <precomp.h>
Go to the source code of this file.
|
int | month [12] = { 31,28,31,30,31,30,31,31,30,31,30,31} |
|
◆ _getsystime()
Definition at line 18 of file systime.c.
19{
24
26
27 tp->tm_year =
Time.wYear - 1900;
28 tp->tm_mon =
Time.wMonth - 1;
29 tp->tm_wday =
Time.wDayOfWeek;
34
36
40 }
41 else
43
44 if (
tp->tm_year % 4 == 0) {
45 if (
tp->tm_year % 100 != 0)
47 else if ((
tp->tm_year-100) % 1000 == 0)
49 }
50
51 for (
i = 0;
i <=
tp->tm_mon;
i++)
53
54 return Time.wMilliseconds;
55}
VOID WINAPI GetLocalTime(OUT LPSYSTEMTIME lpSystemTime)
DWORD WINAPI GetTimeZoneInformation(LPTIME_ZONE_INFORMATION lpTimeZoneInformation)
_In_ uint64_t _In_ uint64_t _In_ uint64_t _In_opt_ traverse_ptr * tp
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 PLARGE_INTEGER Time
#define TIME_ZONE_ID_DAYLIGHT
◆ _setsystime()
Definition at line 61 of file systime.c.
62{
64
65 Time.wYear =
tp->tm_year + 1900;
66 Time.wMonth =
tp->tm_mon + 1;
67 Time.wDayOfWeek =
tp->tm_wday;
72 Time.wMilliseconds = ms;
73
75 return -1;
76
77 return 0;
78}
BOOL WINAPI SetLocalTime(IN CONST SYSTEMTIME *lpSystemTime)
◆ month
int month[12] = { 31,28,31,30,31,30,31,31,30,31,30,31} |