Type Hierarchy:
Satisfied Interfaces: TimeZone

A simple time zone with a constant offset from UTC.

OffsetTimeZone(Integer offsetMilliseconds)
  • offsetMilliseconds

    The value that represents this constant offset.

hashSource Code
shared actual Integer hash

This implementation respect the constraint that if x==y then x.hash==y.hash.

Refined declaration: hash
stringSource Code
shared actual default String string

Returns ISO-8601 formatted String representation of this time of day.


Refined declaration: string
equalsSource Code
shared actual Boolean equals(Object other)

Returns true if given value is same type and offset milliseconds.

Refined declaration: equals
offsetSource Code
shared actual Integer offset(Instant instant)

Always returns a constant offset.

Refined declaration: offset
Inherited Methods
Methods inherited from: TimeZone