year

Syntax

year(X)

Arguments

X is a temporal scalar/vector.

Details

Return the corresponding year(s). The data type of the result is INTEGER.

Examples

$ year(2012.12.03);
2012

$ year(2012.12.03 2011.11.05);
[2012,2011]

$ (2012.12.03).year();
2012

Related functions: second, minute, hour, date, month