Package com.helger.commons.datetime
Class PDTConfig
- java.lang.Object
-
- com.helger.commons.datetime.PDTConfig
-
@ThreadSafe public final class PDTConfig extends Object
This class provides the most basic settings for date time operating: the date-time-zone and the chronology to use.- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TimeZonegetDefaultTimeZone()static ZoneIdgetDefaultZoneId()static TimeZonegetUTCTimeZone()static ZoneIdgetUTCZoneId()static ESuccesssetDefaultDateTimeZoneID(String sDateTimeZoneID)Set the default date time zone to use.
-
-
-
Method Detail
-
setDefaultDateTimeZoneID
@Nonnull public static ESuccess setDefaultDateTimeZoneID(@Nonnull @Nonempty String sDateTimeZoneID)
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
@Nonnull public static ZoneId getDefaultZoneId()
- Returns:
- The default date time zone to use. Never
null. The default is defined by the system.
-
getDefaultTimeZone
@Nonnull public static TimeZone getDefaultTimeZone()
- Returns:
- The default time zone to use. Never
null. The default is is defined by the system.
-
-