Format a date

Syntax

PARSE_TIME …string-expr…

Typing

STRING -> FLOAT?

Description

This function takes a date as a string and convert it to a timestamp. It accepts various common encodings (similar to the UNIX at(1) command.

Beware that PARSE_TIME assumes all dates are in the local time zone.

The result is always nullable.

Examples

expression evaluates to
(PARSE_TIME "1976-01-28 12:00:00.9") // 24h 2218
(PARSE_TIME "12/25/2005") // 24h 13141

See Also

Format a timestamp as a date and time