gmtime

Syntax

gmtime(X)

Details

Convert X from local time zone to GMT (Greenwich Mean Time).

Parameters

X is a scalar or a vector. The data type of X can be DATETIME, TIMESTAMP, or NANOTIMESTAMP.

Returns

The return value shares the same data type and form as the input parameter.

Examples

The following examples were conducted in US Eastern time zone.

gmtime(2018.01.22 10:20:26);
// output: 2018.01.22T15:20:26

gmtime(2017.12.16T13:30:10.008);
// output: 2017.12.16T18:30:10.008