datetime(3) datetime(3) NNAAMMEE datetime - convert between TAI labels and seconds SSYYNNTTAAXX ##iinncclluuddee <> void ddaatteettiimmee__ttaaii(&_d_t,_t); datetime_sec ddaatteettiimmee__uunnttaaii(&_d_t); struct datetime _d_t; datetime_sec _t; DDEESSCCRRIIPPTTIIOONN International Atomic Time, TAI, is the fundamental unit for time mea- surements. TAI has one label for every second of real time, without complications such as leap seconds. A struct datetime variable, such as _d_t, stores a TAI label. _d_t..yyeeaarr is the year number minus 1900; _d_t..mmoonn is the month number, from 0 (Jan- uary) through 11 (December); _d_t..mmddaayy is the day of the month, from 1 through 31; _d_t..hhoouurr is the hour, from 0 through 23; _d_t..mmiinn is the minute, from 0 through 59; _d_t..sseecc is the second, from 0 through 59; _d_t..wwddaayy is the day of the week, from 0 (Sunday) through 6 (Saturday); _d_t..yyddaayy is the day of the year, from 0 through 365. The ddaatteettiimmee library supports more convenient TAI manipulation with the datetime_sec type. A datetime_sec value, such as _t, is an integer referring to the _tth second after the beginning of 1970 TAI. The first second of 1970 TAI was 0; the next second was 1; the last second of 1969 TAI was -1. The difference between two datetime_sec values is a number of real-time seconds. ddaatteettiimmee__ttaaii converts a datetime_sec to a TAI label. ddaatteettiimmee__uunnttaaii reads a TAI label (specifically _d_t..yyeeaarr, _d_t..mmoonn, _d_t..mmddaayy, _d_t..hhoouurr, _d_t..mmiinn, and _d_t..sseecc) and returns a datetime_sec. SSEEEE AALLSSOO now(3) datetime(3)