timeToMsec()

Scalar. Converts a bigdatetime to the number of milliseconds since the epoch (midnight, January 1, 1970).

Syntax

timeToMsec ( time )

Parameters

time

A bigdatetime.

Usage

Converts a bigdatetime to the number of milliseconds since the epoch (midnight, January 1, 1970). The function takes a bigdatetime as its argument, and the function returns a long representing the number of milliseconds since the epoch (midnight, January 1, 1970 UTC). The function truncates the microseconds that are part of the bigdatetime.

Example

timeToMsec ( unbigdatetime('1970-01-01 01:01:01:002100') ) returns 3661002.