Skip to main content

timestamp_to_date

Function timestamp_to_date 

Source
pub fn timestamp_to_date(input: Expression) -> Expression
Expand description

Extract the local calendar date of a Timestamp as a Date in days.

A timestamp with a time zone uses the offset of that zone at its instant, and a timestamp without a time zone already counts local time. The input must be a Timestamp, or binding fails. A date outside the i32 range of days fails at execution.