A time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as 10:15:30+01:00.

See java.time.OffsetTime for full documentation

Hierarchy

  • OffsetTime

Constructors

Methods

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

    Parameters

    Returns Temporal

  • Compares this OffsetTime to another time.

    Parameters

    Returns number

  • Formats this time using the specified formatter.

    Parameters

    Returns string

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

    Parameters

    Returns number

  • Gets the hour-of-day field.

    Returns number

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

    Parameters

    Returns number

  • Gets the minute-of-hour field.

    Returns number

  • Gets the nano-of-second field.

    Returns number

  • Gets the zone offset, such as '+01:00'.

    Returns ZoneOffset

  • Gets the second-of-minute field.

    Returns number

  • Checks if the instant of this OffsetTime is after that of the specified time applying both times to a common date.

    Parameters

    Returns boolean

  • Checks if the instant of this OffsetTime is before that of the specified time applying both times to a common date.

    Parameters

    Returns boolean

  • Checks if the instant of this OffsetTime is equal to that of the specified time applying both times to a common date.

    Parameters

    Returns boolean

  • Checks if the specified field is supported.

    Parameters

    Returns boolean

  • Checks if the specified unit is supported.

    Parameters

    Returns boolean

  • Returns a copy of this time with the specified amount subtracted.

    Parameters

    Returns OffsetTime

  • Returns a copy of this time with the specified amount subtracted.

    Parameters

    Returns OffsetTime

  • Returns a copy of this OffsetTime with the specified number of hours subtracted.

    Parameters

    • hours: number

    Returns OffsetTime

  • Returns a copy of this OffsetTime with the specified number of minutes subtracted.

    Parameters

    • minutes: number

    Returns OffsetTime

  • Returns a copy of this OffsetTime with the specified number of nanoseconds subtracted.

    Parameters

    • nanos: number

    Returns OffsetTime

  • Returns a copy of this OffsetTime with the specified number of seconds subtracted.

    Parameters

    • seconds: number

    Returns OffsetTime

  • Returns a copy of this time with the specified amount added.

    Parameters

    Returns OffsetTime

  • Returns a copy of this time with the specified amount added.

    Parameters

    Returns OffsetTime

  • Returns a copy of this OffsetTime with the specified number of hours added.

    Parameters

    • hours: number

    Returns OffsetTime

  • Returns a copy of this OffsetTime with the specified number of minutes added.

    Parameters

    • minutes: number

    Returns OffsetTime

  • Returns a copy of this OffsetTime with the specified number of nanoseconds added.

    Parameters

    • nanos: number

    Returns OffsetTime

  • Returns a copy of this OffsetTime with the specified number of seconds added.

    Parameters

    • seconds: number

    Returns OffsetTime

  • Queries this time using the specified query.

    Type Parameters

    • R

    Parameters

    Returns R

  • Converts this OffsetTime to the number of seconds since the epoch of 1970-01-01T00:00:00Z.

    Parameters

    Returns number

  • Gets the LocalTime part of this date-time.

    Returns LocalTime

  • Obtains the current date-time from the system clock in the default time-zone.

    Parameters

    • Optional clockOrZoneId: Clock | ZoneId

      Obtains the current date-time from the specified clock or the system clock in the specified time-zone.

    Returns OffsetTime

  • Obtains an instance of OffsetTime from an hour, minute, second and nanosecond.

    Parameters

    • hour: number
    • minute: number
    • second: number
    • nanoOfSecond: number
    • offset: ZoneOffset

    Returns OffsetTime

  • Obtains an instance of OffsetTime from a local time and an offset.

    Parameters

    Returns OffsetTime

  • Obtains an instance of OffsetTime from an Instant and zone ID.

    Parameters

    Returns OffsetTime

  • Obtains an instance of OffsetTime from a text string such as 10:15:30+01:00.

    Parameters

    Returns OffsetTime

  • Calculates the amount of time until another time in terms of the specified unit.

    Parameters

    Returns number

  • Returns a copy of this OffsetTime with the hour-of-day altered.

    Parameters

    • hour: number

    Returns OffsetTime

  • Returns a copy of this OffsetTime with the minute-of-hour altered.

    Parameters

    • minute: number

    Returns OffsetTime

  • Returns a copy of this OffsetTime with the nano-of-second altered.

    Parameters

    • nanoOfSecond: number

    Returns OffsetTime

  • Returns a copy of this OffsetTime with the specified offset ensuring that the result is at the same instant on an implied day.

    Parameters

    Returns OffsetTime

  • Returns a copy of this OffsetTime with the specified offset ensuring that the result has the same local time.

    Parameters

    Returns OffsetTime

  • Returns a copy of this OffsetTime with the second-of-minute altered.

    Parameters

    • second: number

    Returns OffsetTime

Generated using TypeDoc