Returns a date/time string (RFC3339 format). Optional integer defaults to the current date/time, otherwise must be an epoch timestamp.
Example:
# Example for date println date(1609459200) println date()
Returns the current date and time in a readable format (RFC822Z).
If optional integer present, uses that as the epoch timestamp to convert.
Example:
# Example for date_human date_human() # usage
Returns the current epoch (Unix) time in nano-seconds.
Example:
# Example for epoch_nano_time println epoch_nano_time()
Returns the current epoch (Unix) time in seconds. If the optional string is present, then this is converted to epoch int format from RFC3339 format.
Example:
# Example for epoch_time println epoch_time()
Format date as string from current time or epoch.
Example:
# Example for format_date println format_date(1609459200000000000) println format_date()
Format time as string from current time or epoch.
Example:
# Example for format_time println format_time(1609459200000000000) println format_time()
Returns the current epoch (Unix) time in seconds.
Example:
# Example for now println now()
Returns difference in micro-seconds between two nano-epoch dates.
Example:
# Example for time_diff println time_diff(5000, 1000)
Returns the current day of the month (no arguments) or the day of the epoch nano time specified in epochnano.
Example:
# Example for time_dom println time_dom(1609459200) println time_dom()
Returns the current day of the week (no arguments) or the day of the epoch nano time specified in epochnano.
Example:
# Example for time_dow println time_dow(1609459200) println time_dow()
Returns the current hour of the day (no arguments) or the hour of the day specified by the epoch nano time in epochnano.
Example:
# Example for time_hours println time_hours(42)
Returns the current minute of the day (no arguments) or the minute of the day specified by the epoch nano time in epochnano.
Example:
# Example for time_minutes println time_minutes(42)
Returns the current month of the year (no arguments) or the month of the epoch nano time specified in epochnano.
Example:
# Example for time_month println time_month(42)
Returns the offset within the current second, in nanoseconds, (no arguments) or the
offset within the epoch nano time specified in epochnano.
Example:
# Example for time_nanos time_nanos() # usage
Returns the current second of the day (no arguments) or the second of the day specified by
the epoch nano time in epochnano.
Example:
# Example for time_seconds time_seconds() # usage
Returns the current year (no arguments) or the year of the epoch nano time specified in epochnano.
Example:
# Example for time_year println time_year(1609459200) println time_year()
Returns the time zone.
Example:
# Example for time_zone println time_zone(1609459200) println time_zone()
Returns the time zone offset in seconds.
Example:
# Example for time_zone_offset println time_zone_offset(1609459200) println time_zone_offset()