Year number
y = year(
returns the ISO year
numbers for the datetime values in t
)t
. ISO year numbers
include a year zero and represent years BCE using negative values. The
y
output is a double
array the same
size as t
.