Module util

Source

Structs§

DefaultSystemTimer
Default implementation of SystemTimer

Traits§

SystemTimer
A trait for types that provide the current system time.

Functions§

current_time_millis
Returns the time duration since UNIX_EPOCH in milliseconds.
current_time_rfc3339
Returns the current time in rfc3339 format.
datetime_to_utc
Cast a NaiveDateTime with the given timezone.
div_ceil 🔒
Port of rust unstable features int_roundings.
find_tz_from_env
format_nanoseconds_human_readable
Formats nanoseconds into human-readable time with dynamic unit selection.
format_utc_datetime
yesterday_rfc3339
Returns the yesterday time in rfc3339 format.