Antkeeper
0.0.1
|
Gregorian calender time. More...
Functions | |
template<class T > | |
T | to_jd (int year, int month, int day, int hour, int minute, T second, T utc) |
Calculates the JD time from a Gregorian date and time. More... | |
template<class T > | |
T | to_ut1 (int year, int month, int day, int hour, int minute, T second, T utc) |
Calculates the UT1 time from a Gregorian date and time. More... | |
Gregorian calender time.
T physics::time::gregorian::to_jd | ( | int | year, |
int | month, | ||
int | day, | ||
int | hour, | ||
int | minute, | ||
T | second, | ||
T | utc | ||
) |
Calculates the JD time from a Gregorian date and time.
Valid for all dates after November 23, −4713.
year | Astronomical year numbering. 1 BC is 0 , 2 BC is -1 . |
month | Month number on [1, 12] . |
day | Day number on [1, 31] . |
hour | Hour number on [0, 23] . |
minute | Minute number on [0, 59] . |
second | Fractional second on [0.0, 60.0) . |
utc | UTC offset. |
Definition at line 47 of file gregorian.hpp.
T physics::time::gregorian::to_ut1 | ( | int | year, |
int | month, | ||
int | day, | ||
int | hour, | ||
int | minute, | ||
T | second, | ||
T | utc | ||
) |
Calculates the UT1 time from a Gregorian date and time.
Valid for all dates after November 23, −4713.
year | Astronomical year numbering. 1 BC is 0 , 2 BC is -1 . |
month | Month number on [1, 12] . |
day | Day number on [1, 31] . |
hour | Hour number on [0, 23] . |
minute | Minute number on [0, 59] . |
second | Fractional second on [0.0, 60.0) . |
utc | UTC offset. |
Definition at line 67 of file gregorian.hpp.