Skip to main content
Returns the current time in a specified timezone. Shares this behavior with $(currenttime).

Parameters

This variable takes one required parameter that is a valid Time Zone Database name, and one optional parameter that is a string of tokens specifying the output format, which defaults to hh:mm:ss A (z) if not provided.
A list of all existing timezones can be found here, and a list of all available tokens can be found here.

Example Output

  • $(time Europe/London)
  • $(time America/Los_Angeles LLLL)
  • $(time Australia/Sydney YYYY/MM/DD hh:mm:ss)

Error Output

  • In case no timezone is provided, returns the following:
  • In case no valid timezone is provided, returns the following: