Skip to main content

project_datetime

Function project_datetime 

Source
pub fn project_datetime(
    date: i64,
    nanos: i64,
    src_offset: Option<i32>,
    src_zone: Option<&str>,
    new_tz: Option<&str>,
) -> Option<(i64, i64, i32, Option<String>)>
Expand description

Project a datetime (Temporal3 [8]-[11]): apply the source’s zone to the local (date, nanos) after component overrides. With a new timezone: a numeric offset or named zone SHIFTS the instant when the source already had an offset (time/datetime), else ATTACHES (interpreting the local time as being in that zone). Without one, the source offset/zone (or UTC) is kept. (ADR 0009)