Module polars_arrow::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§
- parse_offset_tz
chrono-tz
Parsesvalue
to achrono_tz::Tz
with the Arrow’s definition of timestamp with a 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
value
toOption<i64>
consistent with the Arrow’s definition of timestamp without timezone. Returns in scaletz
ofTimeUnit
. - Parses
value
toOption<i64>
consistent with the Arrow’s definition of timestamp with timezone.tz
must be built fromtimezone
(either viaparse_offset
orchrono-tz
). Returns in scaletz
ofTimeUnit
.