LocalTimeZone
gives the current time zone for the current geo location.
LocalTimeZone[loc]
gives the current time zone for the geo location specified by loc.
LocalTimeZone[loc,date]
gives the time zone for the geo location loc on the specified date.
LocalTimeZone[loc,date,"prop"]
gives the specified property of the time zone.
Details
- The geo location loc can be specified by a GeoPosition object or by giving an appropriate Entity object.
- LocalTimeZone by default returns a time zone Entity.
- Possible properties include:
-
"Entity" time zone as an Entity object (default) "InternetName" conventional internet name (e.g. "America/Chicago") "LongName" long time zone name (e.g. "Central Standard Time") "NumericOffset" offset in hours as a number "Offset" offset as a Quantity object "ShortName" short time zone name (e.g. "CST")
Examples
open allclose allBasic Examples (3)
Get the current local time zone entity:
Get the local time zone for London on different dates:
Get the current time zone offset for Oslo as a Quantity:
Scope (2)
For extended regions, a location of significance is automatically selected (typically a capital city):
Location specifications can be a GeoPosition or Entity:
Text
Wolfram Research (2014), LocalTimeZone, Wolfram Language function, https://reference.wolfram.com/language/ref/LocalTimeZone.html.
CMS
Wolfram Language. 2014. "LocalTimeZone." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/LocalTimeZone.html.
APA
Wolfram Language. (2014). LocalTimeZone. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LocalTimeZone.html