Package com.helger.commons.datetime
Class PDTConfig
java.lang.Object
com.helger.commons.datetime.PDTConfig
This class provides the most basic settings for date time operating: the
date-time-zone and the chronology to use.
- Author:
- Philip Helger
-
Method Details
-
setDefaultDateTimeZoneID
Set the default date time zone to use. This effects all objects created viaPDTFactoryas well as the default JDK TimeZone.- Parameters:
sDateTimeZoneID- Must be a valid, non-nulltime zone.- Returns:
ESuccess
-
getDefaultZoneId
- Returns:
- The default date time zone to use. Never
null. The default is defined by the system.
-
getUTCZoneId
-
getDefaultTimeZone
- Returns:
- The default time zone to use. Never
null. The default is is defined by the system.
-
getUTCTimeZone
- Returns:
- The UTC time zone. Never
null. - Since:
- 9.1.8
-