Example usage for java.time LocalDateTime range

List of usage examples for java.time LocalDateTime range

Introduction

In this page you can find the example usage for java.time LocalDateTime 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) {
    LocalDateTime a = LocalDateTime.of(2014, 6, 30, 12, 01);

    System.out.println(a.range(ChronoField.DAY_OF_WEEK));
}