dtdate#
Purpose#
Creates a matrix in DT scalar format.
Format#
- dt = dtdate(year, month, day, hour, minute, second)#
- Parameters:
year (NxK matrix) – Years
month (NxK matrix) – Months. \(1 \leq month \leq 12\).
day (NxK matrix) – Days. \(1 \leq day \leq 31\).
hour (NxK matrix) – Hours. \(0 \leq hour \leq 23\).
minute (NxK matrix) – Minutes. \(0 \leq minutes \leq 59\).
second (NxK matrix) – Seconds. \(0 \leq seconds \leq 59\).
- Returns:
dt (NxK matrix) – DT scalar format dates.
Examples#
year = 2012;
month = 12;
day = 21;
hour = 11;
minute = 27;
seconds = 56;
dtdate(year, month, day, hour, minute, seconds);
After the above code:
20121221112756
Remarks#
The arguments must be ExE conformable.
Source#
time.src
See also
Functions dtday()
, dttime()
, utctodt()
, dttostr()
, dayofweek()