$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

open allclose all

Basic Examples  (1)

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

Possible Issues  (1)

$TimeZone is set to the current GMT offset when the Wolfram System is initialized:

If the session persists across a daylight time transition, the offset will not change automatically:

In such cases, $TimeZone may be reset manually, or a named time zone may be used to account for the change:

Wolfram Research (2007), $TimeZone, Wolfram Language function, https://reference.wolfram.com/language/ref/$TimeZone.html (updated 2014).

Text

Wolfram Research (2007), $TimeZone, Wolfram Language function, https://reference.wolfram.com/language/ref/$TimeZone.html (updated 2014).

BibTeX

@misc{reference.wolfram_2021_$timezone, author="Wolfram Research", title="{$TimeZone}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/$TimeZone.html}", note=[Accessed: 22-October-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_$timezone, organization={Wolfram Research}, title={$TimeZone}, year={2014}, url={https://reference.wolfram.com/language/ref/$TimeZone.html}, note=[Accessed: 22-October-2021 ]}

CMS

Wolfram Language. 2007. "$TimeZone." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/$TimeZone.html.

APA

Wolfram Language. (2007). $TimeZone. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$TimeZone.html