Example usage for java.time Period normalized

List of usage examples for java.time Period normalized

Introduction

In this page you can find the example usage for java.time Period normalized.

Prototype

public Period normalized() 

Source Link

Document

Returns a copy of this period with the years and months normalized.

Usage

From source file:Main.java

public static void main(String[] args) {
    Period p = Period.ofMonths(123);

    Period l = p.normalized();
    System.out.println(l);/*from w  w  w.ja v a 2  s.c om*/

}