Type Hierarchy:
Satisfied Interfaces: TimeZone

A simple time zone with a constant offset from UTC.

Initializer
OffsetTimeZone(Integer offsetMilliseconds)
Parameters:
  • offsetMilliseconds

    The value that represents this constant offset.

Attributes
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.

https://en.wikipedia.org/wiki/ISO_8601#Time_offsets_from_UTC

Refined declaration: string
Methods
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