DATETIME: Difference between revisions
Appearance
m Ak120 moved page OS2 API:DataType:DATETIME to DATETIME |
mNo edit summary |
||
Line 1: | Line 1: | ||
Date and time data structure | Date and time data structure | ||
=== Type === | === Type === | ||
[[ | [[UCHAR]] hours | ||
UCHAR minutes | |||
UCHAR seconds | |||
UCHAR hundredths | |||
UCHAR day | |||
UCHAR month | |||
[[ | [[USHORT]] year | ||
[[ | [[SHORT]] timezone | ||
UCHAR weekday | |||
==== C Declaration Method ==== | ==== C Declaration Method ==== | ||
Line 17: | Line 16: | ||
=== Fields === | === 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 | |||
[[Category:Data type]] | [[Category:Data type]] |
Revision as of 14:00, 24 May 2017
Date and time data structure
Type
UCHAR hours UCHAR minutes UCHAR seconds UCHAR hundredths UCHAR day UCHAR month USHORT year SHORT timezone UCHAR weekday
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