Example usage for Java java.time ZoneOffset fields, constructors, methods, implement or subclass
The text is from its open source code.
ZoneOffset | UTC The time-zone offset for UTC, with an ID of 'Z'. |
ZoneOffset | MIN Constant for the minimum supported offset. |
ZoneOffset | MAX Constant for the maximum supported offset. |
Temporal | adjustInto(Temporal temporal) Adjusts the specified temporal object to have the same offset as this object. |
int | compareTo(ZoneOffset other) Compares this offset to another offset in descending order. |
boolean | equals(Object obj) Checks if this offset is equal to another offset. |
ZoneOffset | from(TemporalAccessor temporal) Obtains an instance of ZoneOffset from a temporal object. |
int | get(TemporalField field) Gets the value of the specified field from this offset as an int . |
String | getId() Gets the normalized zone offset ID. |
long | getLong(TemporalField field) Gets the value of the specified field from this offset as a long . |
ZoneRules | getRules() Gets the associated time-zone rules. |
int | getTotalSeconds() Gets the total zone offset in seconds. |
int | hashCode() A hash code for this offset. |
boolean | isSupported(TemporalField field) Checks if the specified field is supported. |
ZoneOffset | of(String offsetId) Obtains an instance of ZoneOffset using the ID. |
ZoneOffset | ofHours(int hours) Obtains an instance of ZoneOffset using an offset in hours. |
ZoneOffset | ofHoursMinutes(int hours, int minutes) Obtains an instance of ZoneOffset using an offset in hours and minutes. |
ZoneOffset | ofHoursMinutesSeconds(int hours, int minutes, int seconds) Obtains an instance of ZoneOffset using an offset in hours, minutes and seconds. |
ZoneOffset | ofTotalSeconds(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. |
R | query(TemporalQuery Queries this offset using the specified query. |
ValueRange | range(TemporalField field) Gets the range of valid values for the specified field. |
String | toString() Outputs this offset as a String , using the normalized ID. |