OpenersNotesSection(Spacer1)Details

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Interpret time zones:

Interpreter["TimeZone"]["GMT+5"]

Restrict to time zones in a class:

Interpreter[Restricted["TimeZone",(EntityClass["GMT+1 time zones", EntityClass["TimeZone","GMT+1TimeZones"], "EntityClass[\"TimeZone\", \"GMT+1TimeZones\"]", "TimeZone"])]]["Indian/Maldives"]

Interpreter[Restricted["TimeZone",(EntityClass["GMT+1 time zones", EntityClass["TimeZone","GMT+1TimeZones"], "EntityClass[\"TimeZone\", \"GMT+1TimeZones\"]", "TimeZone"])]]["Europe/Rome"]

Apply a property restriction:

Interpreter[Restricted["TimeZone",(EntityProperty["countries", EntityProperty["TimeZone","Countries"], "EntityProperty[\"TimeZone\", \"Countries\"]"])->(Entity["Canada", Entity["Country","Canada"], "Entity[\"Country\", \"Canada\"]", "country"])]]["GMT+12.75"]

Interpreter[Restricted["TimeZone",(EntityProperty["countries", EntityProperty["TimeZone","Countries"], "EntityProperty[\"TimeZone\", \"Countries\"]"])->(Entity["Canada", Entity["Country","Canada"], "Entity[\"Country\", \"Canada\"]", "country"])]]["America/Toronto"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Interpreter, paclet:ref/Interpreter])  ▪  (RefLink[SemanticImport, paclet:ref/SemanticImport])  ▪  (RefLink[Restricted, paclet:ref/Restricted])  ▪  (RefLink[Failure, paclet:ref/Failure])  ▪  (RefLink[Entity, paclet:ref/Entity])  ▪  (RefLink[EntityValue, paclet:ref/EntityValue])  ▪  (RefLink[GeoWithinQ, paclet:ref/GeoWithinQ])}, {Related Entity Types:  (RefLink[TimeZone, paclet:ref/entity/TimeZone])  ▪  (RefLink[Country, paclet:ref/entity/Country])}, {Related Interpreter Types:  (RefLink[ComputedTimeZone, paclet:ref/interpreter/ComputedTimeZone])  ▪  (RefLink[Time, paclet:ref/interpreter/Time])  ▪  (RefLink[DateTime, paclet:ref/interpreter/DateTime])  ▪  (RefLink[Country, paclet:ref/interpreter/Country])  ▪  (RefLink[CountryClass, paclet:ref/interpreter/CountryClass])  ▪  (RefLink[Location, paclet:ref/interpreter/Location])  ▪  (RefLink[Entity, paclet:ref/interpreter/Entity])  ▪  (RefLink[StructuredTime, paclet:ref/interpreter/StructuredTime])  ▪  (RefLink[ComputedTime, paclet:ref/interpreter/ComputedTime])  ▪  (RefLink[StructuredDateTime, paclet:ref/interpreter/StructuredDateTime])  ▪  (RefLink[ComputedDateTime, paclet:ref/interpreter/ComputedDateTime])  ▪  (RefLink[ComputedCountry, paclet:ref/interpreter/ComputedCountry])  ▪  (RefLink[ComputedLocation, paclet:ref/interpreter/ComputedLocation])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Setting Up Input Interpreters, paclet:guide/InterpretingStrings])}})}})