Bluestep JS Documentation
    Preparing search index...

    Class ZoneOffset

    A time-zone offset from Greenwich/UTC, such as +02:00.

    See java.time.ZoneOffset for full documentation

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constant for the maximum supported offset.

    Constant for the minimum supported offset.

    The time-zone offset for UTC, with an ID of 'Z'.

    Methods

    • Adjusts the specified temporal object to have the same offset as this object.

      Parameters

      Returns Temporal

    • Compares this offset to another offset in descending order.

      Parameters

      Returns number

    • Gets the value of the specified field from this offset as an int.

      Parameters

      Returns number

    • Gets the set of available zone IDs.

      Returns Set<String>

    • Gets the normalized zone offset ID.

      Returns string

    • Gets the value of the specified field from this offset as a long.

      Parameters

      Returns number

    • Gets the total zone offset in seconds.

      Returns number

    • Checks if the specified field is supported.

      Parameters

      Returns boolean

    • Normalizes the time-zone ID, returning a ZoneOffset where possible.

      Returns ZoneId

    • Queries this offset using the specified query.

      Type Parameters

      • R

      Parameters

      Returns R

    • Obtains an instance of ZoneOffset using the ID.

      Parameters

      • offsetId: string

      Returns ZoneOffset

    • Obtains an instance of ZoneOffset using an offset in hours.

      Parameters

      • hours: number

      Returns ZoneOffset

    • Obtains an instance of ZoneOffset using an offset in hours and minutes.

      Parameters

      • hours: number
      • minutes: number

      Returns ZoneOffset

    • Obtains an instance of ZoneOffset using an offset in hours, minutes and seconds.

      Parameters

      • hours: number
      • minutes: number
      • seconds: number

      Returns ZoneOffset

    • Obtains an instance of ZoneId wrapping an offset.

      Parameters

      Returns ZoneId

    • Obtains an instance of ZoneOffset specifying the total offset in seconds

      Parameters

      • totalSeconds: number

      Returns ZoneOffset

    • Gets the system default time-zone.

      Returns ZoneId