Antkeeper  0.0.1
Functions
physics::time::gregorian Namespace Reference

Gregorian calender time. More...

Functions

template<class 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 >
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...
 

Detailed Description

Gregorian calender time.

Function Documentation

◆ to_jd()

template<class T >
T physics::time::gregorian::to_jd ( int  year,
int  month,
int  day,
int  hour,
int  minute,
second,
utc 
)

Calculates the JD time from a Gregorian date and time.

Valid for all dates after November 23, −4713.

Parameters
yearAstronomical year numbering. 1 BC is 0, 2 BC is -1.
monthMonth number on [1, 12].
dayDay number on [1, 31].
hourHour number on [0, 23].
minuteMinute number on [0, 59].
secondFractional second on [0.0, 60.0).
utcUTC offset.
Returns
JD time.
See also
L. E. Doggett, Ch. 12, "Calendars", p. 606, in Seidelmann 1992

Definition at line 47 of file gregorian.hpp.

◆ to_ut1()

template<class T >
T physics::time::gregorian::to_ut1 ( int  year,
int  month,
int  day,
int  hour,
int  minute,
second,
utc 
)

Calculates the UT1 time from a Gregorian date and time.

Valid for all dates after November 23, −4713.

Parameters
yearAstronomical year numbering. 1 BC is 0, 2 BC is -1.
monthMonth number on [1, 12].
dayDay number on [1, 31].
hourHour number on [0, 23].
minuteMinute number on [0, 59].
secondFractional second on [0.0, 60.0).
utcUTC offset.
Returns
UT1 time.

Definition at line 67 of file gregorian.hpp.