The NetRemoteTOD function returns data in the following form:
struct time_of_day_info {
unsigned long tod_elapsedt;
unsigned long tod_msecs;
unsigned char tod_hours;
unsigned char tod_mins;
unsigned char tod_secs;
unsigned char tod_hunds;
unsigned short tod_timezone;
unsigned short tod_tinterval;
unsigned char tod_day;
unsigned char tod_month;
unsigned short tod_year;
unsigned char tod_weekday;
};
where:
- tod_elapsedt indicates the number of seconds
that have elapsed since 1 January 1970, which is represented as 00:00:00.
- tod_msecs indicates the current millisecond.
- tod_hours indicates the current hour.
- tod_mins indicates the current minute.
- tod_secs indicates the current second.
- tod_hunds indicates the current hundredths
of a second.
- tod_timezone indicates the time zone of the
server, calculated (in minutes) from the Greenwich mean time (GMT) zone.
- tod_tinterval indicates the time interval for
each tick of the clock. Each integer represents 0.0001 second.
- tod_day indicates the day of the month (1-31).
- tod_month indicates the month (1-12).
- tod_year indicates the year, starting with
1980.
- tod_weekday indicates the day of the week (0
means Sunday; 6 means Saturday).
[Back]
[Next]