Functions | |
| unsigned int | timeStructToSecondsFrom1940 (const struct tm &timeStruct) |
| struct tm | secondsFrom1940ToTimeStruct (unsigned int seconds) |
| bool | isLeapYear (int year) |
Variables | |
| const long | TimeScaleOffset = 946771200 |
| bool TimeUtilities::isLeapYear | ( | int | year | ) |
Queries whether a given year is a leap year.
| year | The four-digit year to query if it is a leap year. |
true if the given year is a leap year; otherwise returns false. | struct tm TimeUtilities::secondsFrom1940ToTimeStruct | ( | unsigned int | seconds | ) | [read] |
Converts seconds from 1940 to a time struct.
| seconds | The number of seconds after midnight 1 Jan 1940 from which to get a time struct. To convert a time_t (seconds from 1970) to this value, simply add TimeUtilities::TimeScaleOffset. |
| unsigned int TimeUtilities::timeStructToSecondsFrom1940 | ( | const struct tm & | timeStruct | ) |
Converts a time struct to seconds from 1940.
| timeStruct | The time struct from which to get seconds. |
| const long TimeUtilities::TimeScaleOffset = 946771200 |
The number of seconds between midnight 1 Jan 1940 and midnight 1 Jan 1970.
Definition at line 23 of file TimeUtilities.h.