Example usage for java.time Period withDays

List of usage examples for java.time Period withDays

Introduction

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

Prototype

public Period withDays(int days) 

Source Link

Document

Returns a copy of this period with the specified amount of days.

Usage

From source file:Main.java

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

    Period l = p.withDays(10);
    System.out.println(l);/*from  w  w w.  java  2  s.co m*/

}