arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

second

This section contains reference documentation for the second function.

Returns the second of the minute from the given epoch millis in UTC or specified timezone. The value ranges from 0 to 59.

hashtag
Signature

second(tsInMillis)

second(tsInMillis, timeZoneId)

hashtag
Usage Examples

second
second
select second(1639351800000) AS second
FROM ignoreMe

0

select second(1639351800000, 'America/St_Johns') AS second
FROM ignoreMe

0