Date and time functions

NOW()

Returns the current timestamp as an INTEGER.

SECOND()

Returns the integer second (in 0..59 range) from a timestamp argument, according to the current timezone.

MINUTE()

Returns the integer minute (in 0..59 range) from a timestamp argument, according to the current timezone.

HOUR()

Returns the integer hour (in 0..23 range) from a timestamp argument, according to the current timezone.

DAY()

Returns the integer day of month (in 1..31 range) from a timestamp argument, according to the current timezone.

MONTH()

Returns the integer month (in 1..12 range) from a timestamp argument, according to the current timezone.

YEAR()

Returns the integer year (in 1969..2038 range) from a timestamp argument, according to the current timezone.

YEARMONTH()

Returns the integer year and month code (in 196912..203801 range) from a timestamp argument, according to the current timezone.

YEARMONTHDAY()

Returns the integer year, month, and date code (in 19691231..20380119 range) from a timestamp argument, according to the current timezone.