24 #define TOD_SECONDS_AT_2100_03_01_00_00 4107538800UL 31 const uint16_t _TOD_Days_to_date[2][13] = {
32 { 0, 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334 },
33 { 0, 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335 }
42 const uint16_t _TOD_Days_since_last_leap_year[4] = { 0, 366, 731, 1096 };
52 time = the_tod->
day - 1;
53 year_mod_4 = the_tod->
year & 3;
55 if ( year_mod_4 == 0 )
56 time += _TOD_Days_to_date[ 1 ][ the_tod->
month ];
58 time += _TOD_Days_to_date[ 0 ][ the_tod->
month ];
63 time += _TOD_Days_since_last_leap_year[ year_mod_4 ];
This header file defines the Clock Manager API.
uint32_t Watchdog_Interval
Type is used to specify the length of intervals.
This type is used to represent the calendar time in the Classic API.
#define TOD_SECONDS_PER_DAY
uint32_t day
This member represents the day of the month with values from 1 to 31.
#define TOD_DAYS_PER_YEAR
Watchdog_Interval _TOD_To_seconds(const rtems_time_of_day *the_tod)
%
uint32_t month
This member represents the month of the year with values from 1 to 12.
#define TOD_SECONDS_PER_MINUTE
#define TOD_MINUTES_PER_HOUR
#define TOD_BASE_YEAR
Earliest year to which an time of day can be initialized.
uint32_t hour
This member represents the hour of the day with values from 0 to 23.
uint32_t second
This member represents the second of the minute with values from 0 to 59.
uint32_t minute
This member represents the minute of the hour with values from 0 to 59.
uint32_t year
This member represents the year A.D.
#define TOD_SECONDS_1970_THROUGH_1988