Example usage for java.time OffsetTime range

List of usage examples for java.time OffsetTime range

Introduction

In this page you can find the example usage for java.time OffsetTime range.

Prototype

@Override
public ValueRange range(TemporalField field) 

Source Link

Document

Gets the range of valid values for the specified field.

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetTime m = OffsetTime.now();
    ValueRange z = m.range(ChronoField.HOUR_OF_DAY);
    System.out.println(z);//from w w w.  j  a  va 2  s.  c o  m

}