$TimeZone
gives the current time zone to assume for dates and times.
Details
- $TimeZone gives the default time zone used by date functions.
- Possible timezone specifications include:
-
n number of hours added to GMT "zone" named time zone Entity["TimeZone", "zone"] time zone specified by the "TimeZone" entity loc time zone associated with the given location Automatic automatically determine the time zone None specify no time zone information - For numeric values n, the value represents the number of hours that must be added to Greenwich Mean Time (GMT) to obtain local time.
- For string specifications "zone", the result will be returned in the associated named time zone.
- Example time zone strings include "America/Chicago", "Europe/London", "Asia/Tokyo" and "Zulu".
- A list of available time zone entities can be found using EntityList["TimeZone"].
- For location specifications loc, the time zone associated with the specified location Entity or GeoPosition will be used.
- $TimeZone defaults to $SystemTimeZone.
- $TimeZone=z resets the current time zone for purposes of functions like DateString, DateList, and AbsoluteTime.
Examples
open allclose allPossible Issues (1)
Wolfram Research (2007), $TimeZone, Wolfram Language function, https://reference.wolfram.com/language/ref/$TimeZone.html (updated 2022).
Text
Wolfram Research (2007), $TimeZone, Wolfram Language function, https://reference.wolfram.com/language/ref/$TimeZone.html (updated 2022).
CMS
Wolfram Language. 2007. "$TimeZone." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. 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