Skip to main content

Time_Zone.parse

Time_Zone.parseid

Group: Conversions
Aliases: time zone from text

Documentation

This method parses the ID producing a Time_Zone.

Arguments

  • id: The text representing a zone identifier.

Examples

Get Central European Time.

      from Standard.Base import Time_Zone

example_parse = Time_Zone.parse "CET"

Get Moscow time.

      from Standard.Base import Time_Zone

example_parse = Time_Zone.parse "Europe/Moscow"

Get time zone -06:00.

      from Standard.Base import Time_Zone

example_parse = Time_Zone.parse "-06:00"

Get custom offset +03:02:01 of 3 hours 2 minutes an 1 second.

      from Standard.Base import Time_Zone

example_parse = Time_Zone.parse "+03:02:01"