TimeZoneOffset

TimeZoneOffset[tz]

gives the numeric offset between the time zone tz and GMT on the current date.

TimeZoneOffset[loc]

gives the numeric offset between the time zone for the location loc and GMT.

TimeZoneOffset[tz,base]

gives the numeric offset between tz and the specified base time zone.

TimeZoneOffset[tz,base,date]

gives the numeric offset between tz and base on the specified date.

Details

Examples

open allclose all

Basic Examples  (3)

Find the numeric offset for a time zone on the current date:

In[1]:=
Click for copyable input
Out[1]=

Get the offset for the time zone corresponding to a location:

In[1]:=
Click for copyable input
Out[1]=

Location specifications can also be entities:

In[2]:=
Click for copyable input
Out[2]=

Compare the offset between the time in New York and the time in London on different dates:

In[1]:=
Click for copyable input
Out[1]=

The offset between two time zones can vary depending on daylight saving time:

In[2]:=
Click for copyable input
Out[2]=

Scope  (1)

See Also

LocalTimeZone  DateObject  $TimeZone  $TimeZoneEntity  TimeZoneConvert

Introduced in 2015
(10.3)