Expand description
Thin FFI wrappers around the date/time conversion utilities in nautilus-core
.
The Rust implementation already lives in crate::datetime
; this module simply exposes the
conversions to C (and, by extension, to Python via Cython) while keeping the behaviour and the
documentation in one place. Each exported function forwards directly to its Rust counterpart
and therefore inherits the same semantics and safety guarantees.
Functions§
- micros_
to_ nanos - Converts microseconds (μs) to nanoseconds (ns).
- millis_
to_ nanos - Converts milliseconds (ms) to nanoseconds (ns).
- nanos_
to_ micros - Converts nanoseconds (ns) to microseconds (μs).
- nanos_
to_ millis - Converts nanoseconds (ns) to milliseconds (ms).
- nanos_
to_ secs - Converts nanoseconds (ns) to seconds.
- secs_
to_ millis - Converts seconds to milliseconds (ms).
- secs_
to_ nanos - Converts seconds to nanoseconds (ns).
- unix_
nanos_ to_ iso8601_ cstr - Converts a UNIX nanoseconds timestamp to an ISO 8601 (RFC 3339) format C string pointer.
- unix_
nanos_ to_ iso8601_ millis_ cstr - Converts a UNIX nanoseconds timestamp to an ISO 8601 (RFC 3339) format C string pointer with millisecond precision.