Jump to content

DATETIME: Difference between revisions

From EDM2
Anakor (talk | contribs)
No edit summary
 
Anakor (talk | contribs)
m Format
Line 1: Line 1:
== DATETIME ==
== DATETIME ==


Date and time data structure
Date and time data structure.


=== Type ===
=== Type ===


typedef struct _DATETIME
  [[OS2 API:DataType:UCHAR|UCHAR]]  hours
{
  [[OS2 API:DataType:UCHAR|UCHAR]]  minutes
  [[OS2 API:DataType:UCHAR|UCHAR]]  hours;
  [[OS2 API:DataType:UCHAR|UCHAR]]  seconds
  [[OS2 API:DataType:UCHAR|UCHAR]]  minutes;
  [[OS2 API:DataType:UCHAR|UCHAR]]  hundredths
  [[OS2 API:DataType:UCHAR|UCHAR]]  seconds;
  [[OS2 API:DataType:UCHAR|UCHAR]]  day
  [[OS2 API:DataType:UCHAR|UCHAR]]  hundredths;
  [[OS2 API:DataType:UCHAR|UCHAR]]  month
  [[OS2 API:DataType:UCHAR|UCHAR]]  day;
  [[OS2 API:DataType:USHORT|USHORT]] year
  [[OS2 API:DataType:UCHAR|UCHAR]]  month;
  [[OS2 API:DataType:SHORT|SHORT]]  timezone
  [[OS2 API:DataType:USHORT|USHORT]] year;
  [[OS2 API:DataType:UCHAR|UCHAR]]  weekday
  [[OS2 API:DataType:SHORT|SHORT]]  timezone;
 
  [[OS2 API:DataType:UCHAR|UCHAR]]  weekday;
==== C Declaration Method ====
} DATETIME;
 
typedef struct


=== Fields ===
=== Fields ===
  hours      Current hour, using values 0 to 23
  hours      Current hour, using values 0 to 23
  minutes    Current minute, using values 0 to 59
  minutes    Current minute, using values 0 to 59

Revision as of 17:56, 27 May 2005

DATETIME

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