mjuliandate
Modified Julian date calculator
Syntax
Description
converts one or more mjd
= mjuliandate(datetime
)datetime
arrays to modified Julian date,
mjd
. Modified Julian dates begin at midnight rather than noon, and
the first two digits of its corresponding Julian date are removed.
converts one or more date vectors, mjd
= mjuliandate(dateVector
)dateVector
, to modified Julian
date, mjd
.
converts one or more date character vectors, mjd
= mjuliandate(dateCharacterVector
,format
)dateCharacterVector
, to
modified Julian date, mjd
, using format
format
.
and
mjd
= mjuliandate(year
,month
,day
,'Action'=value
)
return the modified Julian date for corresponding elements of the
mjd
= mjuliandate([year
,month
,day
],'Action'=value
)year,month,day
arrays.
and
mjd
= mjuliandate(year
,month
,day
,hour
,minute
,second
,'Action'=value
)
return the modified Julian date for corresponding elements of the
mjd
= mjuliandate([year
,month
,day
,hour
,minute
,second
],'Action'=value
)
arrays. Specify the six arguments as 1-D arrays of the same length or scalar
values.year
,month
,day
,hour
,minute
,second
Examples
Input Arguments
Output Arguments
Limitations
The calculation of modified Julian date does not take into account leap seconds.
Version History
Introduced in R2006bSee Also
decyear
| juliandate
| leapyear
| datenum
| datestr