Skip to main content Skip to complementary content

TO_UNIXTIME

Convert a date to its Epoch (Unix) seconds representation, with fractional milliseconds.

Syntax

TO_UNIXTIME(date)

Arguments

Name Type Description Default Value
date timestamp

Returns

double


Examples

date Output
timestamp "2018-03-10 08:55:12.456" 1.520672112456E9

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!