year Syntax year(X) Details Return the corresponding year(s). Parameters X is a temporal scalar/vector. Returns A scalar or vector of the INT type. Examples year(2012.12.03); // output: 2012 year(2012.12.03 2011.11.05); // output: [2012,2011] (2012.12.03).year(); // output: 2012 Related functions: second, minute, hour, date, month
Examples year(2012.12.03); // output: 2012 year(2012.12.03 2011.11.05); // output: [2012,2011] (2012.12.03).year(); // output: 2012 Related functions: second, minute, hour, date, month