gusucode.com > bigdata 工具箱 matlab源码程序 > bigdata/@tall/hms.m

    function varargout = hms(tt)
%HMS Hour, minute, and second numbers of tall datetime and duration.
%   Supported syntaxes:
%   [H,M,S] = HMS(T)
%
%   See also DATETIME/HMS, DURATION/HMS.

%   Copyright 2015-2016 The MathWorks, Inc.

nargoutchk(0,3);
tt = tall.validateType(tt, mfilename, {'datetime', 'duration'}, 1);
[varargout{1:max(nargout,1)}] = elementfun(@hms, tt);
newAdaptor = matlab.bigdata.internal.adaptors.getAdaptorForType('double');
newAdaptor = copySizeInformation(newAdaptor, tt.Adaptor);
for idx = 1:numel(varargout)
    varargout{idx}.Adaptor = newAdaptor;
end
end