Module re_sdk::external::arrow2::temporal_conversions
source · Expand description
Conversion methods for dates and times.
Constants§
- Number of days between 0001-01-01 and 1970-01-01
- Number of microseconds in a second
- Number of milliseconds in a second
- Number of milliseconds in a day
- Number of nanoseconds in a second
- Number of seconds in a day
Functions§
- Adds an
intervalto atimestampintime_unitunits and timezonetimezone. - Adds an
intervalto atimestampintime_unitunits without timezone. - Calculates the scale factor between two TimeUnits. The function returns the scale that should multiply the TimeUnit “b” to have the same time scale as the TimeUnit “a”.
- Parses a
Utf8Arrayto naive timestamp, i.e.PrimitiveArray<i64>with typeTimestamp(Nanosecond, None). Timezones are ignored. Null elements remain null; non-parsable elements are set to null. - Parses
valuetoOption<i64>consistent with the Arrow’s definition of timestamp without timezone. - Parses
valuetoOption<i64>consistent with the Arrow’s definition of timestamp without timezone. Returns in scaletzofTimeUnit. - Parses a
Utf8Arrayto a timeozone-aware timestamp, i.e.PrimitiveArray<i64>with typeTimestamp(Nanosecond, Some(timezone)). - Parses
valuetoOption<i64>consistent with the Arrow’s definition of timestamp with timezone.tzmust be built fromtimezone(either viaparse_offsetorchrono-tz). - Parses
valuetoOption<i64>consistent with the Arrow’s definition of timestamp with timezone.tzmust be built fromtimezone(either viaparse_offsetorchrono-tz). Returns in scaletzofTimeUnit.