Example usage for java.time ZonedDateTime plusWeeks

List of usage examples for java.time ZonedDateTime plusWeeks

Introduction

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

Prototype

public ZonedDateTime plusWeeks(long weeks) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    ZonedDateTime dateTime = ZonedDateTime.now();
    ZonedDateTime n = dateTime.plusWeeks(1234);
    System.out.println(n);/*www. j  av  a  2  s.  c  o m*/
}