# nanotime {#nanotime}

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

## Syntax {#syntax}

`nanotime(X)`

## Arguments {#arguments}

**X** is an integer or temporal scalar/vector.

## Details {#details}

Convert the data type of X to NANOTIME.

## Examples {#examples}

```
nanotime(1000000000);
// output: 00:00:01.000000000

nanotime(12:06:09 13:08:01);
// output: [12:06:09.000000000,13:08:01.000000000]

nanotime(2012.12.03 01:22:01.123456789);
// output: 01:22:01.123456789

nanotime('13:30:10.008007006');
// output: 13:30:10.008007006
```

Related function: [nanotimestamp](nanotimestamp.md)

