datetime

Syntax

datetime(X)

Arguments

X is a temporal scalar/vector, or an integer.

Details

Return the corresponding datetime(s). The return value type is DATETIME, a temporal.

Note that the range for data of DATETIME type is [1901.12.13T20:45:53, 2038.01.19T03:14:07].

Examples

$ datetime(2009.11.10);
2009.11.10T00:00:00

$ typestr datetime(2009.11.10);
DATETIME

$ datetime(now());
2016.03.02T20:51:10

Related functions: date, second, minute, month, hour, year