CMC_time

A CMC_time structure contains a time value in CMC-compatible form for use in a message.

Quick Info

Header file:

XCMC.H

 

typedef struct{ 

     CMC_sint8     second;

     CMC_sint8     minute;

     CMC_sint8     hour;

     CMC_sint8     day;

     CMC_sint8     month;

     CMC_sint8     year;

     CMC_sint8     isdst;

     CMC_sint8      unused1;

     CMC_sint16     tmzone;

     CMC_sint16     unused2;

} CMC_time;

 

Members

second

Seconds; possible values range from 0 through 59.

minute

Minutes; possible values range from 0 through 59.

hour

Hours since midnight; possible values range from 0 through 23.

day

Day of the month; possible values range from 1 through 31.

month

Months since January; possible values range from 0 through 11.

year

Years since 1900.

isdst

Value for daylight saving time. A nonzero value means daylight saving time is in force.

unused1

Reserved. Do not use.

tmzone

Time zone, measured in minutes relative to Greenwich mean time. The value CMC_NO_TIMEZONE indicates that time zone information is not available.

unused2

Reserved. Do not use.

 

Remarks

The CMC time implementation is based on the assumption that all time values reflect the appropriate local time. For example, the time_sent members in the CMC_message1KO2ZRW and CMC_message_summaryXRL_JR structures reflect the local time of the sender s location.

See Also

CMC_message, CMC_message_summary