-
Notifications
You must be signed in to change notification settings - Fork 2
cal2mjd
Josh Cardenzana edited this page Mar 29, 2017
·
4 revisions
Converts from gregorian calendar date (year, month, day) to modified Julian date. Note that the gregorian calendar date is expected to be in UTC time.
May be called in one of two ways:
- cal2mjd YYYYMMDD.<day fraction>
- cal2mjd <YYYY> <MM> <DD>.<day fraction>
RETURNED: Modified Julian Date
The following is an example for getting the modified Julian date associated with a given calendar date of July 4, 2016 at 4:48 am UTC:
Input
cal2mjd 20160704.2
or
cal2mjd 2016 07 04.2
Output
57573.200000
© Joshua V. Cardenzana, all rights reserved