Skip to content

Latest commit

 

History

History
55 lines (42 loc) · 729 Bytes

File metadata and controls

55 lines (42 loc) · 729 Bytes
description
This section contains reference documentation for the day function.

day

Returns the day of the month from the given epoch millis in UTC or specified timezone. The value ranges from 1 to 31.

Signature

day(tsInMillis)

day(tsInMillis, timeZoneId)

dayOfMonth(tsInMillis)

dayOfMonth(tsInMillis, timeZoneId)

Usage Examples

select day(1639351800000) AS day
FROM ignoreMe
day
12
select day(1639351800000, 'CET') AS day
FROM ignoreMe
day
13
select dayOfMonth(1639351800000) AS day
FROM ignoreMe
day
12
select dayOfMonth(1639351800000, 'CET') AS day
FROM ignoreMe
day
13