Example usage for java.time ZonedDateTime plusMonths

List of usage examples for java.time ZonedDateTime plusMonths

Introduction

In this page you can find the example usage for java.time ZonedDateTime plusMonths.

Prototype

public ZonedDateTime plusMonths(long months) 

Source Link

Document

Returns a copy of this ZonedDateTime with the specified number of months added.

Usage

From source file:Main.java

public static void main(String[] args) {
    ZonedDateTime dateTime = ZonedDateTime.now();
    ZonedDateTime n = dateTime.plusMonths(12);
    System.out.println(n);//from w w  w . j av  a 2  s  .  co m
}