8.2.10.8 datetime.datetime

Constructor: obj = datetime ()

Constructs a new scalar datetime containing the current local time, with no time zone attached.

Constructor: obj = datetime (datevec)
Constructor: obj = datetime (datestrs)
Constructor: obj = datetime (in, 'ConvertFrom', inType)
Constructor: obj = datetime (Y, M, D, H, MI, S)
Constructor: obj = datetime (Y, M, D, H, MI, MS)
Constructor: obj = datetime (…, 'Format', Format, 'InputFormat', InputFormat, 'Locale', InputLocale, 'PivotYear', PivotYear, 'TimeZone', TimeZone)

Constructs a new datetime array based on input values.