Example usage for java.time OffsetDateTime range

List of usage examples for java.time OffsetDateTime range

Introduction

In this page you can find the example usage for java.time OffsetDateTime 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) {
    OffsetDateTime o = OffsetDateTime.now();
    ValueRange l = o.range(ChronoField.DAY_OF_WEEK);
    System.out.println(l);/*ww w  .j  a v  a 2s  .co m*/
}