msos2.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
DATETIME (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_DOSDATETIME
 
typedef struct _DATETIME {    /* date */
    UCHAR   hours;
    UCHAR   minutes;
    UCHAR   seconds;
    UCHAR   hundredths;
    UCHAR   day;
    UCHAR   month;
    USHORT  year;
    SHORT   timezone;
    UCHAR   weekday;
} DATETIME;
 
The DATETIME structure contains the date and time.
 
Field       Description
────────────────────────────────────────────────────────────────────────────
 
hours       Specifies the current hour using values from 0 through 23.
 
minutes     Specifies the current minute using values from 0 through 59.
 
seconds     Specifies the current second using values from 0 through 59.
 
hundredths  Specifies the current hundredths of a second using values from 0
            through 99.
 
day         Specifies the current day of the month using values from 1
            through 31.
 
month       Specifies the current month of the year using values from 1
            through 12.
 
year        Specifies the current year.
 
timezone    Specifies the difference (in minutes) between the current time
            zone and Greenwich Mean Time (GMT). This field is positive for
            time zones west of Greenwich; it is negative for time zones east
            of Greenwich. For example, for Eastern Standard Time this field
            is 300 (that is, five hours, 5 * 60, after GMT). If this field
            is -1, the time zone is undefined.
 
weekday     Specifies the current day of the week using values from 0
            through 6 (Sunday equals zero).
 
See Also
 
DosGetDateTime, DosSetDateTime