function m = month(t, varargin)
%MONTH Month numbers or names of datetimes.
%   
%   M = MONTH(T)
%   
%   See also MONTH.
%   


%   Copyright 2016-2022 The MathWorks, Inc.

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