Example usage for java.time LocalDateTime plusWeeks

List of usage examples for java.time LocalDateTime plusWeeks

Introduction

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

Prototype

public LocalDateTime plusWeeks(long weeks) 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    LocalDateTime a = LocalDateTime.of(2014, 6, 30, 12, 00);

    LocalDateTime t = a.plusWeeks(100);

    System.out.println(t);//from  www  . j  av a2  s  . com
}