Skip to main content

local_count

Function local_count 

Source
pub fn local_count(
    value: i64,
    unit: TimeUnit,
    zone: Option<&TimeZone>,
) -> VortexResult<i128>
Expand description

Shift a timestamp count into the local wall-clock time of zone.

The whole days and the remainder of the result give the local date and time of day. A timestamp without a time zone already counts local time, so a None zone returns the count unchanged.

The result is an i128 because the shift can move a count near either end of the i64 range past that end.