UNIXTIME

Convert a date, datetime, time, or number into Unix time.

Parameter List

Syntax
UNIXTIME(time)
time

The timestamp to convert to Unix time. For example: "2020-01-01" orNOW()`.

Examples

UNIXTIME("2018-12-20") returns 1545264000