DosGetDateTime
Bindings: C, MASM
This call gets the current date and time maintained by the operating
system.
DosGetDateTime (DateTime)
DateTime (PDATETIME) - output
Address of the date and time structure:
hours (UCHAR)
Current hour.
minutes (UCHAR)
Current minute.
seconds (UCHAR)
Current second.
hundredths (UCHAR)
Current hundredth of a second.
day (UCHAR)
Current day.
month (UCHAR)
Current month.
year (USHORT)
Current year.
timezone (SHORT)
Minutes west of UTC (Universal Time Coordinate).
weekday (UCHAR)
Current day of the week. Sunday is 0.
rc (USHORT) - return
Return code description is:
0 NO_ERROR
Remarks
The dayofweek value is based on Sunday equal to zero. The value of
timezone is the difference in minutes between the current time zone and
UTC. This number is positive if it is earlier than UTC and negative if
it is later than UTC. For Eastern Standard Time, this value is 300 (5
hours earlier than UTC).
If the application is executing in the OS/2 environment, it is more
efficient to obtain these variables by calling DosGetInfoSeg instead of
this function. However, applications written to the family API cannot
depend on the availability of DosGetInfoSeg.
Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs