decyear
Decimal year calculator
Syntax
Description
converts one or more dy
= decyear(datetime
)datetime
arrays to decimal year,
dy
.
converts one or more date vectors, dy
= decyear(dateVector
)dateVector
, into decimal year,
dy
.
converts one or more date character vectors, dy
= decyear(dateCharacterVector
,format
)dateCharacterVector
, to
decimal year using format format
.
and
dy
= decyear(year
,month
,day
)
return the decimal year for corresponding elements of the
dy
= decyear([year
,month
,day
])year,month,day
arrays.
and
dy
= decyear(year
,month
,day
,hour
,minute
,second
)
return the decimal year for corresponding elements of the
dy
= decyear([year
,month
,day
,hour
,minute
,second
])
arrays. Specify the six arguments as one-dimensional arrays of the same length or as
scalar values.year
,month
,day
,hour
,minute
,second
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2006b
See Also
juliandate
| leapyear
| mjuliandate
| datenum
| datestr
| datetime