Time conversion routines.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=wp), | private, | parameter | :: | jd_j2000 | = | 2451545.0_wp |
julian date of J2000 epoch |
calendar date to julian date
Returns the Julian date for the specified YEAR, MONTH, DAY, HR, MIN, SEC.
Valid for any Gregorian calendar date producing a Julian date greater than zero.
second
a real value & renamed routine.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | y | |||
integer, | intent(in) | :: | m | |||
integer, | intent(in) | :: | d | |||
integer, | intent(in) | :: | hour | |||
integer, | intent(in) | :: | minute | |||
real(kind=wp), | intent(in) | :: | second |
Returns the Julian date for the specified YEAR, MONTH, DAY, HR, MIN, SEC.
Valid for any Gregorian calendar date producing a Julian date greater than zero.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | y | |||
integer, | intent(in) | :: | m | |||
integer, | intent(in) | :: | d | |||
integer, | intent(in) | :: | hour | |||
integer, | intent(in) | :: | minute | |||
integer, | intent(in) | :: | second |
Returns the year, month, day, hr, min, sec for the specified Julian date.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | julian_date |
julian date |
||
integer, | intent(out) | :: | year | |||
integer, | intent(out) | :: | month | |||
integer, | intent(out) | :: | day | |||
integer, | intent(out) | :: | hrs | |||
integer, | intent(out) | :: | min | |||
real(kind=wp), | intent(out) | :: | sec |
Convert ephemeris time (seconds from J2000 epoch) to Julian date.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | et |
ephemeris time [sec from J2000 epoch] |
Julian date [days]
Convert Julian date to ephemeris time (seconds from J2000 epoch).
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | jd |
Julian date [days] |
ephemeris time [sec from J2000 epoch]
Converts Julian date to Modified Julian date.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | jd |
julian date |
modified julian date
Converts Modified Julian date to Julian date.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | mjd |
modified julian date |
julian date
Returns the Julian day number (i.e., the Julian date at Greenwich noon) on the specified YEAR, MONTH, and DAY.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | y |
year (YYYY) |
||
integer, | intent(in) | :: | m |
month (MM) |
||
integer, | intent(in) | :: | d |
day (DD) |
Returns the Julian date for the specified YEAR, MONTH, DAY, HR, MIN, SEC.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | y | |||
integer, | intent(in) | :: | m | |||
integer, | intent(in) | :: | d | |||
integer, | intent(in) | :: | hour | |||
integer, | intent(in) | :: | minute | |||
integer, | intent(in) | :: | second |
Returns the Julian date for the specified YEAR, MONTH, DAY, HR, MIN, SEC.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | y | |||
integer, | intent(in) | :: | m | |||
integer, | intent(in) | :: | d | |||
integer, | intent(in) | :: | hour | |||
integer, | intent(in) | :: | minute | |||
real(kind=wp), | intent(in) | :: | second |
Returns the year, month, day, hr, min, sec for the specified Julian date.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | julian_date |
julian date |
||
integer, | intent(out) | :: | year | |||
integer, | intent(out) | :: | month | |||
integer, | intent(out) | :: | day | |||
integer, | intent(out) | :: | hrs | |||
integer, | intent(out) | :: | min | |||
real(kind=wp), | intent(out) | :: | sec |
Test routine for the Julian date routines.