Jump to content

DATETIME: Difference between revisions

From EDM2
mNo edit summary
Ak120 (talk | contribs)
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
== DATETIME ==
Date and time data structure


Date and time data structure.
== Type ==
 
  [[UCHAR]]  hours;      /* 0..23 */
=== Type ===
  UCHAR  minutes;    /* 0..59 */
 
  UCHAR  seconds;    /* 0..59 */
  [[OS2 API:DataType:UCHAR|UCHAR]]  hours
  UCHAR  hundredths;  /* 0..99, 1/100 s */
  [[OS2 API:DataType:UCHAR|UCHAR]] minutes
  UCHAR  day;        /* 0..31 */
  [[OS2 API:DataType:UCHAR|UCHAR]] seconds
  UCHAR  month;      /* 0..12 */
  [[OS2 API:DataType:UCHAR|UCHAR]] hundredths
  [[USHORT]] year;
  [[OS2 API:DataType:UCHAR|UCHAR]] day
  [[SHORT]]  timezone;
  [[OS2 API:DataType:UCHAR|UCHAR]] month
  UCHAR  weekday;    /* 0..6 0=Sunday */
  [[OS2 API:DataType:USHORT|USHORT]] year
  [[OS2 API:DataType:SHORT|SHORT]]  timezone
  [[OS2 API:DataType:UCHAR|UCHAR]] weekday


==== C Declaration Method ====
==== C Declaration Method ====
typedef struct
typedef struct


=== 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


hours      Current hour, using values 0 to 23
==PDATETIME==
minutes    Current minute, using values 0 to 59
Pointer to DATETIME structure
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
 
[[OS2_API | Back to OS/2 API]]
 


[[Category:The OS/2 API Project]]
[[Category:Data type]]

Latest revision as of 07:26, 21 February 2020

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;
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

PDATETIME

Pointer to DATETIME structure