Expand description
Conversion methods for dates and times.
Constants§
- EPOCH_
DAYS_ FROM_ CE - Number of days between 0001-01-01 and 1970-01-01
- MICROSECONDS
- Number of microseconds in a second
- MICROSECONDS_
IN_ DAY - Number of microseconds in a day
- MILLISECONDS
- Number of milliseconds in a second
- MILLISECONDS_
IN_ DAY - Number of milliseconds in a day
- NANOSECONDS
- Number of nanoseconds in a second
- NANOSECONDS_
IN_ DAY - Number of nanoseconds in a day
- SECONDS_
IN_ DAY - Number of seconds in a day
Functions§
- date32_
to_ date - converts a
i32
representing adate32
toNaiveDate
- date32_
to_ date_ opt - converts a
i32
representing adate32
toNaiveDate
- date32_
to_ datetime - converts a
i32
representing adate32
toNaiveDateTime
- date32_
to_ datetime_ opt - converts a
i32
representing adate32
toNaiveDateTime
- date64_
to_ date - converts a
i64
representing adate64
toNaiveDate
- date64_
to_ datetime - converts a
i64
representing adate64
toNaiveDateTime
- duration_
ms_ to_ duration - converts a
i64
representing aduration(ms)
toDuration
- duration_
ns_ to_ duration - converts a
i64
representing aduration(ns)
toDuration
- duration_
s_ to_ duration - converts a
i64
representing aduration(s)
toDuration
- duration_
us_ to_ duration - converts a
i64
representing aduration(us)
toDuration
- parse_
offset - Parses an offset of the form
"+WX:YZ"
or"UTC"
intoFixedOffset
. - parse_
offset_ tz chrono-tz
- Parses
value
to achrono_tz::Tz
with the Arrow’s definition of timestamp with a timezone. - time32ms_
to_ time - converts a
i32
representing atime32(ms)
toNaiveTime
- time32s_
to_ time - converts a
i32
representing atime32(s)
toNaiveTime
- time64ns_
to_ time - converts a
i64
representing atime64(ns)
toNaiveTime
- time64ns_
to_ time_ opt - converts a
i64
representing atime64(ns)
toNaiveTime
- time64us_
to_ time - converts a
i64
representing atime64(us)
toNaiveTime
- time64us_
to_ time_ opt - converts a
i64
representing atime64(us)
toNaiveTime
- timestamp_
ms_ to_ datetime - converts a
i64
representing atimestamp(ms)
toNaiveDateTime
- timestamp_
ms_ to_ datetime_ opt - converts a
i64
representing atimestamp(ms)
toNaiveDateTime
- timestamp_
ns_ to_ datetime - converts a
i64
representing atimestamp(ns)
toNaiveDateTime
- timestamp_
ns_ to_ datetime_ opt - converts a
i64
representing atimestamp(ns)
toNaiveDateTime
- timestamp_
s_ to_ datetime - converts a
i64
representing atimestamp(s)
toNaiveDateTime
- timestamp_
s_ to_ datetime_ opt - converts a
i64
representing atimestamp(s)
toNaiveDateTime
- timestamp_
to_ datetime - Converts a timestamp in
time_unit
andtimezone
intochrono::DateTime
. - timestamp_
us_ to_ datetime - converts a
i64
representing atimestamp(us)
toNaiveDateTime
- timestamp_
us_ to_ datetime_ opt - converts a
i64
representing atimestamp(us)
toNaiveDateTime
- timeunit_
scale - 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”.
- utf8_
to_ timestamp_ scalar - Parses
value
toOption<i64>
consistent with the Arrow’s definition of timestamp with timezone.