Module time

Source

Functionsยง

add_days
Add specified number of days to a UTC datetime
add_hours
Add specified number of hours to a UTC datetime
diff_seconds
Calculate the difference between two UTC times in seconds
format
Format a datetime as a string
local_to_utc
Convert local time to UTC time
now
Returns the current local date and time.
timestamp
Get the current Unix timestamp in seconds
timestamp_millis
Get the current Unix timestamp in milliseconds
utc_now
Get the current UTC date and time
utc_to_local
Convert UTC time to local time