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

Function split_second

arrow-array/src/temporal_conversions.rs:214–216  ·  view source on GitHub ↗
(v: i64, base: i64)

Source from the content-addressed store, hash-verified

212
213#[inline]
214pub(crate) fn split_second(v: i64, base: i64) -> (i64, u32) {
215 (v.div_euclid(base), v.rem_euclid(base) as u32)
216}
217
218/// converts a `i64` representing a `duration(s)` to [`Option<Duration>`]
219#[inline]

Callers 5

date64_to_datetimeFunction · 0.85
timestamp_ms_to_datetimeFunction · 0.85
timestamp_us_to_datetimeFunction · 0.85
timestamp_ns_to_datetimeFunction · 0.85
test_split_secondsFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_split_secondsFunction · 0.68