Skip to main content

timezone_interval_timestamp_binary

Function timezone_interval_timestamp_binary 

Source
fn timezone_interval_timestamp_binary(
    interval: Interval,
    ts: CheckedTimestamp<NaiveDateTime>,
) -> Result<CheckedTimestamp<DateTime<Utc>>, EvalError>
Expand description

Converts the timestamp datum b, which is assumed to be in the time of the timezone datum a to a timestamptz in UTC. The interval is not allowed to hold months, but there are no limits on the amount of seconds. The interval acts like a chrono::FixedOffset, without the -86,400 < x < 86,400 limitation.