DATETIME: Difference between revisions
Appearance
mNo edit summary |
m →Type |
||
Line 2: | Line 2: | ||
=== Type === | === Type === | ||
[[UCHAR]] hours | [[UCHAR]] hours; /* 0..23 */ | ||
UCHAR minutes | UCHAR minutes; /* 0..59 */ | ||
UCHAR seconds | UCHAR seconds; /* 0..59 */ | ||
UCHAR hundredths | UCHAR hundredths; /* 0..99, 1/100 s */ | ||
UCHAR day | UCHAR day; /* 0..31 */ | ||
UCHAR month | UCHAR month; /* 0..12 */ | ||
[[USHORT]] year | [[USHORT]] year; | ||
[[SHORT]] timezone | [[SHORT]] timezone; /* Difference in minutes between current time zone and GMT. >0 west of Greenwich */ | ||
UCHAR weekday | UCHAR weekday; /* 0..6 0=Sunday */ | ||
==== C Declaration Method ==== | ==== C Declaration Method ==== |
Revision as of 16:29, 9 October 2018
Date and time data structure
Type
UCHAR hours; /* 0..23 */ UCHAR minutes; /* 0..59 */ UCHAR seconds; /* 0..59 */ UCHAR hundredths; /* 0..99, 1/100 s */ UCHAR day; /* 0..31 */ UCHAR month; /* 0..12 */ USHORT year; SHORT timezone; /* Difference in minutes between current time zone and GMT. >0 west of Greenwich */ UCHAR weekday; /* 0..6 0=Sunday */
C Declaration Method
typedef struct
Fields
- hours
- Current hour, using values 0 to 23
- minutes
- Current minute, using values 0 to 59
- seconds
- Current second, using values 0 to 59
- hundredths
- Current hundredths, using values 0 to 99
- day
- Current day, using values 1 to 31
- month
- Current month, using values 1 to 12
- year
- Current year
- timezone
- The difference in minutes between the current time zone and GMT
- weekday
- Current day of week, using values 0 to 6