Module datetime

Source

Functions§

py_is_within_last_24_hours
Return whether the given UNIX nanoseconds timestamp is within the last 24 hours.
py_last_weekday_nanos
Return UNIX nanoseconds at midnight (UTC) of the last weekday (Mon-Fri).
py_micros_to_nanos
Return round nanoseconds (ns) converted from the given microseconds (μs).
py_millis_to_nanos
Return round nanoseconds (ns) converted from the given milliseconds (ms).
py_nanos_to_micros
Return round microseconds (μs) converted from the given nanoseconds (ns).
py_nanos_to_millis
Return round milliseconds (ms) converted from the given nanoseconds (ns).
py_nanos_to_secs
Return seconds converted from the given nanoseconds (ns).
py_secs_to_millis
Return round milliseconds (ms) converted from the given seconds.
py_secs_to_nanos
Return round nanoseconds (ns) converted from the given seconds.
py_unix_nanos_to_iso8601
Return UNIX nanoseconds as an ISO 8601 (RFC 3339) format string.