Java java.time ZoneOffset fields, constructors, methods, implement or subclass

Example usage for Java java.time ZoneOffset fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.time ZoneOffset.

The text is from its open source code.

Field

ZoneOffsetUTC
The time-zone offset for UTC, with an ID of 'Z'.
ZoneOffsetMIN
Constant for the minimum supported offset.
ZoneOffsetMAX
Constant for the maximum supported offset.

Method

TemporaladjustInto(Temporal temporal)
Adjusts the specified temporal object to have the same offset as this object.
intcompareTo(ZoneOffset other)
Compares this offset to another offset in descending order.
booleanequals(Object obj)
Checks if this offset is equal to another offset.
ZoneOffsetfrom(TemporalAccessor temporal)
Obtains an instance of ZoneOffset from a temporal object.
intget(TemporalField field)
Gets the value of the specified field from this offset as an int .
StringgetId()
Gets the normalized zone offset ID.
longgetLong(TemporalField field)
Gets the value of the specified field from this offset as a long .
ZoneRulesgetRules()
Gets the associated time-zone rules.
intgetTotalSeconds()
Gets the total zone offset in seconds.
inthashCode()
A hash code for this offset.
booleanisSupported(TemporalField field)
Checks if the specified field is supported.
ZoneOffsetof(String offsetId)
Obtains an instance of ZoneOffset using the ID.
ZoneOffsetofHours(int hours)
Obtains an instance of ZoneOffset using an offset in hours.
ZoneOffsetofHoursMinutes(int hours, int minutes)
Obtains an instance of ZoneOffset using an offset in hours and minutes.
ZoneOffsetofHoursMinutesSeconds(int hours, int minutes, int seconds)
Obtains an instance of ZoneOffset using an offset in hours, minutes and seconds.
ZoneOffsetofTotalSeconds(int totalSeconds)
Obtains an instance of ZoneOffset specifying the total offset in seconds

The offset must be in the range -18:00 to +18:00 , which corresponds to -64800 to +64800.

Rquery(TemporalQuery query)
Queries this offset using the specified query.
ValueRangerange(TemporalField field)
Gets the range of valid values for the specified field.
StringtoString()
Outputs this offset as a String , using the normalized ID.