Skip to main content

Module date

Module date 

Source
Expand description

Date and time utilities

Functions§

format_date
Format a datetime to a string
is_expired
Check if a timestamp is expired
now
Get the current UTC timestamp
parse_date
Parse a date string
unix_timestamp
Get Unix timestamp in seconds
unix_timestamp_millis
Get Unix timestamp in milliseconds

Type Aliases§

Duration
Alias of TimeDelta.