Package org.silverpeas.core.date
Class TimeZoneUtil
- java.lang.Object
-
- org.silverpeas.core.date.TimeZoneUtil
-
public class TimeZoneUtil extends Object
- Author:
- silveryocha
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ZoneId
toZoneId(String timeZoneId)
Gets the zone id instance from a time zone id which could be different than the registered identifiers ofZoneId.getAvailableZoneIds()
instances.
If not registered, the zone identifier is search into a property file: org.silverpeas.util.timezone.properties
The mapping comes from this source.
-
-
-
Method Detail
-
toZoneId
public static ZoneId toZoneId(String timeZoneId)
Gets the zone id instance from a time zone id which could be different than the registered identifiers ofZoneId.getAvailableZoneIds()
instances.
If not registered, the zone identifier is search into a property file: org.silverpeas.util.timezone.properties
The mapping comes from this source.- Parameters:
timeZoneId
- a time zone identifier as string.- Returns:
- the corresponding
ZoneId
instance.
-
-