timestamp

Syntax

timestamp(X)

Arguments

X is a temporal scalar/vector.

Details

Return the corresponding timestamp(s). The data type of the result is TIMESTAMP.

Since version 2.00.12, converting MONTH into TIMESTAMP is allowed.

Examples

timestamp(2016.10.12);
// output: 2016.10.12T00:00:00.000

timestamp(2016.10.12)+1;
// output: 2016.10.12T00:00:00.001

timestamp(now());
// output: 2016.10.13T20:28:45.104

timestamp(2012.01M)
// output: 2012.01.01T00:00:00.000