Home | History | Annotate | Download | only in time

Lines Matching defs:of

6  * under the terms of the GNU General Public License version 2 only, as
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 * You should have received a copy of the GNU General Public License version
29 * However, the following notice accompanied the original version of this
39 * * Redistributions of source code must retain the above copyright notice,
40 * this list of conditions and the following disclaimer.
43 * this list of conditions and the following disclaimer in the documentation
46 * * Neither the name of JSR-310 nor the names of its contributors
52 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
56 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
57 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
59 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
60 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
93 * A time-zone offset is the amount of time that a time-zone differs from Greenwich/UTC.
94 * This is usually a fixed number of hours and minutes.
96 * Different parts of the world have different time-zone offsets.
97 * The rules for how offsets vary by place and time of year are captured in the
100 * For example, Paris is one hour ahead of Greenwich/UTC in winter and two hours
107 * validation, the range of offsets is restricted to -18:00 to 18:00 inclusive.
110 * The fields of hours, minutes and seconds make assumptions that are valid for the
111 * standard ISO definitions of those fields. This class may be used with other
112 * calendar systems providing the definition of the time fields matches those
113 * of the ISO calendar system.
115 * Instances of {@code ZoneOffset} must be compared using {@link #equals}.
128 /** Cache of time-zone offset by offset in seconds. */
130 /** Cache of time-zone offset by ID. */
143 * The time-zone offset for UTC, with an ID of 'Z'.
160 * The string form of the time-zone offset.
166 * Obtains an instance of {@code ZoneOffset} using the ID.
168 * This method parses the string ID of a {@code ZoneOffset} to
186 * The ID of the returned offset will be normalized to one of the formats
196 public static ZoneOffset of(String offsetId) {
270 * Obtains an instance of {@code ZoneOffset} using an offset in hours.
281 * Obtains an instance of {@code ZoneOffset} using an offset in
284 * The sign of the hours and minutes components must match.
298 * Obtains an instance of {@code ZoneOffset} using an offset in
301 * The sign of the hours, minutes and seconds components must match.
318 * Obtains an instance of {@code ZoneOffset} from a temporal object.
321 * A {@code TemporalAccessor} represents an arbitrary set of date and time information,
322 * which this factory converts to an instance of {@code ZoneOffset}.
324 * A {@code TemporalAccessor} represents some form of date and time information.
325 * This factory converts the arbitrary temporal object to an instance of {@code ZoneOffset}.
330 * This method matches the signature of the functional interface {@link TemporalQuery}
342 temporal + " of type " + temporal.getClass().getName());
399 * Obtains an instance of {@code ZoneOffset} specifying the total offset in seconds
462 * It returns the total of the hours, minutes and seconds fields as a
499 return ZoneRules.of(this);
514 * If the field is not a {@code ChronoField}, then the result of this method
531 * Gets the range of valid values for the specified field.
534 * This offset is used to enhance the accuracy of the returned range.
543 * If the field is not a {@code ChronoField}, then the result of this method
549 * @return the range of valid values for the field, not null
559 * Gets the value of the specified field from this offset as an {@code int}.
561 * This queries this offset for the value of the specified field.
562 * The returned value will always be within the valid range of values for the field.
567 * The {@code OFFSET_SECONDS} field returns the value of the offset.
570 * If the field is not a {@code ChronoField}, then the result of this method
578 * the value is outside the range of valid values for the field
580 * the range of values exceeds an {@code int}
594 * Gets the value of the specified field from this offset as a {@code long}.
596 * This queries this offset for the value of the specified field.
601 * The {@code OFFSET_SECONDS} field returns the value of the offset.
604 * If the field is not a {@code ChronoField}, then the result of this method
631 * obtain the result. Read the documentation of the query to understand
632 * what the result of this method will be.
634 * The result of this method is obtained by invoking the
638 * @param <R> the type of the result
656 * This returns a temporal object of the same observable type as the input
687 * of day around the world. Thus, an offset of {@code +10:00} comes before an
688 * offset of {@code +09:00} and so on down to {@code -18:00}.
705 * The comparison is based on the amount of the offset in seconds.
736 * @return a string representation of this offset, not null
757 * @return the instance of {@code Ser}, not null