Example usage for java.time OffsetDateTime plusWeeks

List of usage examples for java.time OffsetDateTime plusWeeks

Introduction

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

Prototype

public OffsetDateTime plusWeeks(long weeks) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetDateTime o = OffsetDateTime.now();
    OffsetDateTime d = o.plusWeeks(20);
    System.out.println(d);//from   w  w  w  .j  a va 2s .c om
}