Expand description
Conversion methods for dates and times.
Constants§
- 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
- UNIX_
EPOCH_ DAY - Constant from chrono crate
Functions§
- as_date
- Converts an
ArrowPrimitiveType
toNaiveDate
- as_
datetime - Converts an
ArrowPrimitiveType
toNaiveDateTime
- as_
datetime_ with_ timezone - Converts an
ArrowPrimitiveType
toDateTime<Tz>
- as_
duration - Converts an
ArrowPrimitiveType
toDuration
- as_time
- Converts an
ArrowPrimitiveType
toNaiveTime
- date32_
to_ datetime - converts a
i32
representing adate32
toNaiveDateTime
- 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
- time32ms_
to_ time - converts a
i32
representing atime32(ms)
toNaiveDateTime
- time32s_
to_ time - converts a
i32
representing atime32(s)
toNaiveDateTime
- time64ns_
to_ time - converts a
i64
representing atime64(ns)
toNaiveDateTime
- time64us_
to_ time - converts a
i64
representing atime64(us)
toNaiveDateTime
- time_
to_ time32ms - converts
NaiveTime
to ai32
representing atime32(ms)
- time_
to_ time32s - converts
NaiveTime
to ai32
representing atime32(s)
- time_
to_ time64ns - converts
NaiveTime
to ai64
representing atime64(ns)
- time_
to_ time64us - converts
NaiveTime
to ai64
representing atime64(us)
- timestamp_
ms_ to_ datetime - converts a
i64
representing atimestamp(ms)
toNaiveDateTime
- timestamp_
ns_ to_ datetime - converts a
i64
representing atimestamp(ns)
toNaiveDateTime
- timestamp_
s_ to_ date - Similar to timestamp_s_to_datetime but only compute
date
- timestamp_
s_ to_ datetime - converts a
i64
representing atimestamp(s)
toNaiveDateTime
- timestamp_
s_ to_ time - Similar to timestamp_s_to_datetime but only compute
time
- timestamp_
us_ to_ datetime - converts a
i64
representing atimestamp(us)
toNaiveDateTime