Skip to content

Supported time zone formats

Nick Korotysh edited this page Feb 5, 2025 · 1 revision

Time Zone plugin gives a possibility to display time zone. It uses "format string" to configure time zone representation. The following control characters are supported:

  • Z - IANA ID, not localized string "region/city", for example "Europe/Stockholm"
  • C - city, parsed from IANA ID, so not localized string
  • c - platform-specific comment (usually the same as in OS dialog for time zone selection), may be empty
  • n - platform-specific time zone name, usually localized, may significantly vary between platforms
  • a - platform-specific time zone abbreviation (e.g. "CET"), varies between platforms, may be localized
  • O - offset from UTC in format "+/-00:00"
  • o - offset from UTC in format "+/-0000" (no colon)

Any of the characters listed above can be combined with each other, for example, string "C (O)" may produce "Stockholm (+01:00)".

Any other characters are not interpreted and passed as is, any text (including control characters) quoted with single quote ("'") is not interpreted and also appears in result string as is. The single control character can be escaped using "\" (backslash).

Multiple lines formats are also supported, see "Multiple lines" page for more details.

Clone this wiki locally