![]() |
0.4.1
|
Utility Namespace for Time related tasks. More...
Functions | |
constexpr int32_t | daysInMonth (int32_t month, int32_t year) |
Returns the number of days in the specified month of the year. | |
constexpr std::string | formatDuration (double seconds, size_t digits=9) |
Formats a duration given in seconds into days, hours, minutes and seconds. | |
constexpr bool | isLeapYear (int32_t year) |
Returns true if the provided year is a leap year, false otherwise. | |
Variables | |
constexpr int32_t | DAYS_PER_WEEK |
Days / Week. | |
constexpr int32_t | DAYS_PER_YEAR |
Days / Year. | |
constexpr int32_t | DIFF_BDT_WEEK_TO_GPST_WEEK |
BeiDou starts zero at 1-Jan-2006 and GPS starts 6-Jan-1980. | |
constexpr int32_t | DIFF_MJD_TO_JD_DAYS |
Difference of the days between MJD and JD. | |
constexpr long double | DIFF_MJD_TO_JD_FRAC |
Difference of the fraction between MJD and JD. | |
constexpr int32_t | DIFF_TO_1_1_1970_MJD |
01.01.1970 00:00:00 UTC in Modified Julian Date (UNIX epoch) | |
constexpr int32_t | DIFF_TO_6_1_1980_MJD |
06.01.1980 in Modified Julian Date | |
constexpr int32_t | END_OF_THE_CENTURY_MJD |
Modified Julian Date of the end of the century (15.01.2954) | |
constexpr long double | EPSILON |
constexpr std::array< int32_t, 20 > | GPS_LEAP_SEC_MJD |
Maps GPS leap seconds to a time: array<mjd_day>, index + 1 is amount of leap seconds. | |
constexpr int32_t | HOURS_PER_DAY |
Hours / Day. | |
constexpr int32_t | HOURS_PER_WEEK |
Hours / Week. | |
constexpr int32_t | MINUTES_PER_DAY |
Minutes / Day. | |
constexpr int32_t | MINUTES_PER_HOUR |
Minutes / Hour. | |
constexpr int32_t | MINUTES_PER_WEEK |
Minutes / Week. | |
constexpr int32_t | MONTHS_PER_YEAR |
Months / Year. | |
constexpr int32_t | SECONDS_PER_DAY |
Seconds / Day. | |
constexpr int32_t | SECONDS_PER_HOUR |
Seconds / Hour. | |
constexpr int32_t | SECONDS_PER_MINUTE |
Seconds / Minute. | |
constexpr int32_t | SECONDS_PER_WEEK |
Seconds / Week. | |
constexpr int32_t | WEEKS_PER_GPS_CYCLE |
Weeks per GPS cycle. | |
Utility Namespace for Time related tasks.
|
constexpr |
Returns the number of days in the specified month of the year.
[in] | month | Month [1-12] |
[in] | year | Year to determine the leap year |
Definition at line 105 of file InsTime.hpp.
|
constexpr |
Formats a duration given in seconds into days, hours, minutes and seconds.
[in] | seconds | Amount of seconds |
[in] | digits | Digits to round the seconds to |
Definition at line 159 of file InsTime.hpp.
|
constexpr |
Returns true if the provided year is a leap year, false otherwise.
[in] | year | The year to check |
Definition at line 96 of file InsTime.hpp.
|
constexpr |
Days / Week.
Definition at line 52 of file InsTime.hpp.
|
constexpr |
Days / Year.
Definition at line 51 of file InsTime.hpp.
|
constexpr |
BeiDou starts zero at 1-Jan-2006 and GPS starts 6-Jan-1980.
Definition at line 45 of file InsTime.hpp.
|
constexpr |
Difference of the days between MJD and JD.
Definition at line 47 of file InsTime.hpp.
|
constexpr |
Difference of the fraction between MJD and JD.
Definition at line 48 of file InsTime.hpp.
|
constexpr |
01.01.1970 00:00:00 UTC in Modified Julian Date (UNIX epoch)
Definition at line 44 of file InsTime.hpp.
|
constexpr |
06.01.1980 in Modified Julian Date
Definition at line 43 of file InsTime.hpp.
|
constexpr |
Modified Julian Date of the end of the century (15.01.2954)
Definition at line 41 of file InsTime.hpp.
|
constexpr |
Numerical precision/epsilon for 'long double' variables
Definition at line 67 of file InsTime.hpp.
|
constexpr |
Maps GPS leap seconds to a time: array<mjd_day>, index + 1 is amount of leap seconds.
Definition at line 70 of file InsTime.hpp.
|
constexpr |
Hours / Day.
Definition at line 53 of file InsTime.hpp.
|
constexpr |
Hours / Week.
Definition at line 54 of file InsTime.hpp.
|
constexpr |
Minutes / Day.
Definition at line 56 of file InsTime.hpp.
|
constexpr |
Minutes / Hour.
Definition at line 55 of file InsTime.hpp.
|
constexpr |
Minutes / Week.
Definition at line 57 of file InsTime.hpp.
|
constexpr |
Months / Year.
Definition at line 50 of file InsTime.hpp.
|
constexpr |
Seconds / Day.
Definition at line 60 of file InsTime.hpp.
|
constexpr |
Seconds / Hour.
Definition at line 59 of file InsTime.hpp.
|
constexpr |
Seconds / Minute.
Definition at line 58 of file InsTime.hpp.
|
constexpr |
Seconds / Week.
Definition at line 61 of file InsTime.hpp.
|
constexpr |
Weeks per GPS cycle.
Definition at line 42 of file InsTime.hpp.