Class TimeZone.Builder

  • Enclosing class:
    TimeZone

    public static class TimeZone.Builder
    extends java.lang.Object
    Builder for constructing a timeZone
    • Constructor Detail

      • Builder

        public Builder()
      • Builder

        public Builder​(TimeZone timeZone)
    • Method Detail

      • id

        public TimeZone.Builder id​(java.lang.String value)
        Parameters:
        value - The id of the time zone, conforming to java.time.ZoneId
        Returns:
        The TimeZone.Builder, enabling method chaining
      • offsetHours

        public TimeZone.Builder offsetHours​(java.lang.Integer value)
        Parameters:
        value - The number of hours this timezone is offset from UTC
        Returns:
        The TimeZone.Builder, enabling method chaining
      • offsetMinutes

        public TimeZone.Builder offsetMinutes​(java.lang.Integer value)
        Parameters:
        value - The number of minutes this timezone is offset from UTC
        Returns:
        The TimeZone.Builder, enabling method chaining