Time Zone Formats
Work with different formats for time zone specifications: numeric values, strings, or entities.
Get your system time zone offset as a number of hours relative to Greenwich Mean Time.
In[1]:=
![Click for copyable input](assets.en/time-zone-formats/In_12.png)
$TimeZone
Out[1]=
![](assets.en/time-zone-formats/O_12.png)
This is your system "TimeZone" entity.
In[2]:=
![Click for copyable input](assets.en/time-zone-formats/In_13.png)
$TimeZoneEntity
Out[2]=
![](assets.en/time-zone-formats/O_13.png)
Get the current date and time for a specific named time zone.
In[3]:=
![Click for copyable input](assets.en/time-zone-formats/In_14.png)
DateObject[TimeZone -> "Asia/Tokyo"]
Out[3]=
![](assets.en/time-zone-formats/O_14.png)
Get a list of example "TimeZone" entities.
In[4]:=
![Click for copyable input](assets.en/time-zone-formats/In_15.png)
EntityValue["TimeZone", "SampleEntities"]
Out[4]=
![](assets.en/time-zone-formats/O_15.png)
Visualize the geographic region that observes Mountain Time in the United States.
In[5]:=
![Click for copyable input](assets.en/time-zone-formats/In_16.png)
GeoGraphics[{Red, EdgeForm[Black],
Polygon[Entity["TimeZone", "America/Denver"]]},
GeoRange -> Quantity[650, "Miles"]]
Out[5]=
![](assets.en/time-zone-formats/O_16.png)