MCPcopy Create free account
hub / github.com/apache/arrow-rs / timestamp_s_to_datetime

Function timestamp_s_to_datetime

arrow-array/src/temporal_conversions.rs:143–145  ·  view source on GitHub ↗
(v: i64)

Source from the content-addressed store, hash-verified

141/// converts a `i64` representing a `timestamp(s)` to [`NaiveDateTime`]
142#[inline]
143pub fn timestamp_s_to_datetime(v: i64) -> Option<NaiveDateTime> {
144 Some(DateTime::from_timestamp(v, 0)?.naive_utc())
145}
146
147/// Similar to timestamp_s_to_datetime but only compute `date`
148#[inline]

Callers 3

date_partMethod · 0.85
as_datetimeFunction · 0.85
test_timestamp_funcFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_timestamp_funcFunction · 0.68