py_unix_nanos_to_iso8601

Function py_unix_nanos_to_iso8601 

Source
pub fn py_unix_nanos_to_iso8601(
    timestamp_ns: u64,
    nanos_precision: Option<bool>,
) -> PyResult<String>
Expand description

Return UNIX nanoseconds as an ISO 8601 (RFC 3339) format string.

§Parameters

timestamp_ns : int The UNIX timestamp (nanoseconds). nanos_precision : bool, default True If True, use nanosecond precision. If False, use millisecond precision.

§Returns

str

§Raises

ValueError If timestamp_ns is invalid.