時刻帯の形式
数値,文字列,実体等の,時刻帯指定のさまざまなフォーマットを使う.
使用中のシステムの時刻帯オフセットを,グリニッジ標準時と相対的な時間数で得る.
In[1]:=
![Click for copyable input](assets.ja/time-zone-formats/In_12.png)
$TimeZone
Out[1]=
![](assets.ja/time-zone-formats/O_12.png)
これが,使用中のシステムの"TimeZone"実体である.
In[2]:=
![Click for copyable input](assets.ja/time-zone-formats/In_13.png)
$TimeZoneEntity
Out[2]=
![](assets.ja/time-zone-formats/O_13.png)
特定の名前付き時刻帯について,現在の日付と時刻を得る.
In[3]:=
![Click for copyable input](assets.ja/time-zone-formats/In_14.png)
DateObject[TimeZone -> "Asia/Tokyo"]
Out[3]=
![](assets.ja/time-zone-formats/O_14.png)
"TimeZone"実体の例のリストを得る.
In[4]:=
![Click for copyable input](assets.ja/time-zone-formats/In_15.png)
EntityValue["TimeZone", "SampleEntities"]
Out[4]=
![](assets.ja/time-zone-formats/O_15.png)
アメリカ合衆国の山岳時刻帯に属する地理領域を可視化する.
In[5]:=
![Click for copyable input](assets.ja/time-zone-formats/In_16.png)
GeoGraphics[{Red, EdgeForm[Black],
Polygon[Entity["TimeZone", "America/Denver"]]},
GeoRange -> Quantity[650, "Miles"]]
Out[5]=
![](assets.ja/time-zone-formats/O_16.png)