# secondOfMinute {#secondofminute}

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

## Syntax {#syntax}

`secondOfMinute(X)`

## Arguments {#arguments}

**X** is a scalar/vector of type TIME, SECOND, DATETIME, TIMESTAMP, NANOTIME or NANOTIMESTAMP.

## Details {#details}

For each element in *X*, return a number from 0 to 59 indicating which second of the minute it falls in.

## Examples {#examples}

```
secondOfMinute(12:32:00);
// output: 0

secondOfMinute([2012.06.12T12:30:00,2012.10.28T12:35:00,2013.01.06T12:36:47,2013.04.06T08:02:14]);
// output: [0,0,47,14]
```

