www.gusucode.com > bigdata 工具箱 matlab源码程序 > bigdata/@tall/year.m
function ty = year(tt, varargin) %YEAR Year numbers of tall array of datetimes. % Supported syntaxes: % Y = YEAR(T) % Y = YEAR(T,KIND) % Copyright 2015-2016 The MathWorks, Inc. narginchk(1,2); % output is numeric regardless of KIND ty = datetimePiece(mfilename, 'double', tt, varargin{:}); end