$TimeZone

$TimeZone

gives the current time zone to assume for dates and times.

Details

  • The time zone gives the number of hours that must be added to Greenwich Mean Time (GMT) to obtain local time.
  • US Eastern Standard Time (EST) corresponds to time zone -5.
  • Daylight saving time corrections must be included in the time zone, so US Eastern Daylight Time (EDT) corresponds to time zone -4.
  • $TimeZone defaults to $SystemTimeZone.
  • $TimeZone=z resets the current time zone for purposes of functions like DateString, DateList, and AbsoluteTime.
  • Settings for $TimeZone may be an Integer, Real, or time zone String.

Examples

Basic Examples  (1)

Show the number of hours that must be added to GMT to obtain local time:

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

See Also

$SystemTimeZone  $TimeZoneEntity  TimeZone  DateObject  AbsoluteTime  DateList  DateString

Tutorials

Introduced in 2007
(6.0)