function d = day(t, varargin)
%DAY Day numbers or names of datetimes.
%   
%   D = DAY(T)
%   D = DAY(T,KIND)
%   
%   See also DAY.
%   


%   Copyright 2016-2022 The MathWorks, Inc.

if isstring(t) || ischar(t)
    error(message("parallel:distributed:DatetimefunInvalidArgumentType"));
else
    d = codistributed.pElementwiseUnaryOp(@day, t, varargin{:});
end
