-
Notifications
You must be signed in to change notification settings - Fork 2
mjd2cal
Josh Cardenzana edited this page Mar 29, 2017
·
3 revisions
Converts from modified Julian date to Gregorian calendar date (year, month, day). Note that the gregorian calendar date is in UTC time.
See cal2mjd for the reverse conversion.
mjd2jd <modified julian date> <return format ID>
RETURNED: Gregorian calendar date in one of two formats:
- Format ID = 0 : YYYYMMDD.<date fraction>
- Format ID = 1 : YYYY MM DD.<day fraction>
The following is an example for getting the Gregorian calendar date with a given modified Julian date of 57573.2:
Input
mjd2cal 57573.2
or
mjd2cal 57573.2 0
Output
20160704.200000
Input
mjd2cal 57573.2 1
Output
2016 07 4.2000
© Joshua V. Cardenzana, all rights reserved