Skip to content
Josh Cardenzana edited this page Mar 29, 2017 · 3 revisions

Converts from Julian date to Gregorian calendar date (year, month, day). Note that the Gregorian calendar date is returned in UTC time.

See cal2jd for the reverse conversion.

USAGE

jd2cal <julian date> <return format ID>

RETURNED: Gregorian calendar date in one of two formats:

  • ID=0: YYYYMMDD.<date fraction> (default)
  • ID=1: YYYY MM DD.<day fraction>

Example

The following is an example for getting the Gregorian calendar date associated with a given Julian date of 2457573.7:
Input

jd2cal 2457573.7

or

jd2cal 2457573.7 1

Output

Output using format ID = 0 (default)

20160704.200000

Output using format ID = 1

2016 07 4.2000

Clone this wiki locally