Now

Get the current time.

Now

Time format

Formats the given timestamp as a human-readable string.

Time format

Arguments

NameDescriptionRequired
SecondsA timestamp in seconds since epoch.Yes
TimezoneA timezone name from the tz database. If not specified or if an empty string, the default is UTC.No

Time parse

Parses the given string as a timestamp.

Time parse

Arguments

NameDescriptionRequired
ValueA string formatted according to the subset of ISO 8601 defined by RFC 3339 section 5.6, with up to a microsecond precision.Yes