# gmtime {#gmtime}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`gmtime(X)`

## Arguments {#arguments}

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

## Details {#details}

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

## Examples {#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
```

