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 Details

    • setDefaultDateTimeZoneID

      @Nonnull public static ESuccess setDefaultDateTimeZoneID(@Nonnull @Nonempty String sDateTimeZoneID)
      Set the default date time zone to use. This effects all objects created via PDTFactory as well as the default JDK TimeZone.
      Parameters:
      sDateTimeZoneID - Must be a valid, non-null time 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.
    • getUTCZoneId

      @Nonnull public static ZoneId getUTCZoneId()
    • getDefaultTimeZone

      @Nonnull public static TimeZone getDefaultTimeZone()
      Returns:
      The default time zone to use. Never null. The default is is defined by the system.
    • getUTCTimeZone

      @Nonnull public static TimeZone getUTCTimeZone()
      Returns:
      The UTC time zone. Never null.
      Since:
      9.1.8