Module time

Module time 

Source
Expand description

A module that provides common functions for timestamps.

Functionsยง

format
Produces a formatted String from a timestamp, displayed as local time.
format_unix_timestamp
Takes a unix timestamp and returns a formatted String.
from_unix_timestamp
Creates a new time from a unix timestamp, at UTC.
now_utc
Retrieves the current timestamp, at UTC.