This article discusses the use case of retrieving the time zone information at a certain location, at a given date.
Time zone information is useful to be able to calculate the local time at a location.
The TimeZone information can be retrieved using the getTimeZone operation.
Given a certain location, the operation returns the offset to Coordinated Universal Time (UTC).
If a specific date is also set, the operation returns the daylight saving time information for that day, otherwise it returns this information for the current date.
The sample below uses the RESTREST (Representational State Transfer) represents a World Wide Web paradigm, consisting of constraints to the design of components which results in a better performance and maintainability. API to request the time zone information of a location.
The following topics might be relevant for this use case.