Compartir a través de


2.2.4.105 TIME_OF_DAY_INFO

The TIME_OF_DAY_INFO structure contains information about the time of day from a remote server.

 typedef struct _TIME_OF_DAY_INFO {
   DWORD tod_elapsedt;
   DWORD tod_msecs;
   DWORD tod_hours;
   DWORD tod_mins;
   DWORD tod_secs;
   DWORD tod_hunds;
   long tod_timezone;
   DWORD tod_tinterval;
   DWORD tod_day;
   DWORD tod_month;
   DWORD tod_year;
   DWORD tod_weekday;
 } TIME_OF_DAY_INFO,
  *PTIME_OF_DAY_INFO,
  *LPTIME_OF_DAY_INFO;

tod_elapsedt: Specifies a DWORD value that contains the number of seconds since 00:00:00, January 1, 1970, GMT.

tod_msecs: Specifies a DWORD value that contains the number of milliseconds from an arbitrary starting point (system reset).

tod_hours: Specifies a DWORD value that contains the current hour. This value MUST be in the range 0 through 23, inclusive.

tod_mins: Specifies a DWORD value that contains the current minute. This value MUST be in the range 0 through 59, inclusive.

tod_secs: Specifies a DWORD value that contains the current second. This value MUST be in the range 0 through 59, inclusive.

tod_hunds: Specifies a DWORD value that contains the current hundredth second (0.01 second). This value MUST be in the range 0 through 99, inclusive.

tod_timezone: Specifies the time zone of the server. This value MUST be calculated, in minutes, from Greenwich Mean Time (GMT). For time zones that are west of Greenwich, the value MUST be positive; for time zones that are east of Greenwich, the value MUST be negative. A value of –1 MUST indicate that the time zone is undefined.

tod_tinterval: Specifies a DWORD value that contains the time interval for each tick of the clock. Each integral integer MUST represent one ten-thousandth second (0.0001 second).

tod_day: Specifies a DWORD value that contains the day of the month. This value MUST be in the range 1 through 31, inclusive.

tod_month: Specifies a DWORD value that contains the month of the year. This value MUST be in the range 1 through 12, inclusive.

tod_year: Specifies a DWORD value that contains the year.

tod_weekday: Specifies a DWORD value that contains the day of the week. This value MUST be in the range 0 through 6, inclusive, where 0 is Sunday, 1 is Monday, and so on.