juliandate
Convert MATLAB datetime to Julian date
Description
jd = juliandate(
returns the Julian dates equivalent to the t
)datetime
values in
t
.
If the time zone of
t
is not specified, thenjuliandate
treats the times int
as UTC times. This interpretation might differ from your treatment of "unzoned"datetime
arrays in other contexts. For example, you might think ofdatetime("now")
as returning your local time. However,juliandate
interprets it as a UTC time.If the time zone of
t
is specified, thenjuliandate
uses the offset for the time zone to compute Julian dates with respect to UTC.juliandate
ignores leap seconds unless the time zone oft
isUTCLeapSeconds
.
The best practice is to specify the time zone of t
before
calling juliandate
.
Examples
Input Arguments
More About
Extended Capabilities
Version History
Introduced in R2014b