Module time

Module time 

Source
Expand description

Time utilities

Structsยง

Date
DateTime
Represents a UTC DateTime with individual fields for date and time components.
NanoTimestamp
Timestamp
Wrapper struct to represent system timestamps.

Enumsยง

DateFormat

Constantsยง

DAYS_IN_MONTHS ๐Ÿ”’
Represents the number of days in each month for both leap and non-leap years.
MIN_IN_HOUR ๐Ÿ”’
SECS_IN_DAY ๐Ÿ”’
SECS_IN_HOUR ๐Ÿ”’

Functionsยง

fmt_duration
Formats a Duration into a user-friendly format using days, hours, minutes, and seconds, and returns the formatted string.
timestamp_to_date