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
i32representing adate32toNaiveDate - date32_
to_ date_ opt - converts a
i32representing adate32toNaiveDate - date32_
to_ datetime - converts a
i32representing adate32toNaiveDateTime - date32_
to_ datetime_ opt - converts a
i32representing adate32toNaiveDateTime - date64_
to_ date - converts a
i64representing adate64toNaiveDate - date64_
to_ datetime - converts a
i64representing adate64toNaiveDateTime - duration_
ms_ to_ duration - converts a
i64representing aduration(ms)toDuration - duration_
ns_ to_ duration - converts a
i64representing aduration(ns)toDuration - duration_
s_ to_ duration - converts a
i64representing aduration(s)toDuration - duration_
us_ to_ duration - converts a
i64representing aduration(us)toDuration - parse_
offset - Parses an offset of the form
"+WX:YZ"or"UTC"intoFixedOffset. - parse_
offset_ tz - Parses
valueto achrono_tz::Tzwith the Arrow’s definition of timestamp with a timezone. - time32ms_
to_ time - converts a
i32representing atime32(ms)toNaiveTime - time32s_
to_ time - converts a
i32representing atime32(s)toNaiveTime - time64ns_
to_ time - converts a
i64representing atime64(ns)toNaiveTime - time64ns_
to_ time_ opt - converts a
i64representing atime64(ns)toNaiveTime - time64us_
to_ time - converts a
i64representing atime64(us)toNaiveTime - time64us_
to_ time_ opt - converts a
i64representing atime64(us)toNaiveTime - timestamp_
ms_ to_ datetime - converts a
i64representing atimestamp(ms)toNaiveDateTime - timestamp_
ms_ to_ datetime_ opt - converts a
i64representing atimestamp(ms)toNaiveDateTime - timestamp_
ns_ to_ datetime - converts a
i64representing atimestamp(ns)toNaiveDateTime - timestamp_
ns_ to_ datetime_ opt - converts a
i64representing atimestamp(ns)toNaiveDateTime - timestamp_
s_ to_ datetime - converts a
i64representing atimestamp(s)toNaiveDateTime - timestamp_
s_ to_ datetime_ opt - converts a
i64representing atimestamp(s)toNaiveDateTime - timestamp_
to_ datetime - Converts a timestamp in
time_unitandtimezoneintochrono::DateTime. - timestamp_
us_ to_ datetime - converts a
i64representing atimestamp(us)toNaiveDateTime - timestamp_
us_ to_ datetime_ opt - converts a
i64representing 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
valuetoOption<i64>consistent with the Arrow’s definition of timestamp with timezone.