TOC  |              |              | 


mjd - date conversion to/from modified Julian date

mjd yr mon day or
mjd yr DOY or
mjd MJD or
where DOY = day-of-year and MJD = modified Julian date.


DESCRIPTION

mjd takes a user input date, given as year, month and day or year and day-of-year, converts to the modified Julian date, and writes the result to stdout. Conversely, mjd will convert a modified Julian date to the equivalent year, month and day.

mjd recognizes three input forms

EXAMPLES

Values returned by the program will be shown in fixed width font.
Convert a year, month and day to the modified Julian date.
mjd 97 12 1
50783

Convert a year and day-of-year to the modified Julian date.
mjd 97 335
50783

Convert a modified Julian date to the calendar date.
mjd 50827
1998 1 14



 TOC  |              |              | 


mjd.html
January 14, 2000
Steve Hilla