Example usage for java.time LocalDateTime plusSeconds

List of usage examples for java.time LocalDateTime plusSeconds

Introduction

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

Prototype

public LocalDateTime plusSeconds(long seconds) 

Source Link

Document

Returns a copy of this LocalDateTime with the specified number of seconds 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.plusSeconds(100);

    System.out.println(t);//  w w  w . j av a 2 s.c om
}

From source file:com.streamsets.pipeline.stage.origin.jdbc.cdc.oracle.OracleCDCSource.java

private LocalDateTime getEndTimeForStartTime(LocalDateTime startTime) {
    return startTime.plusSeconds(configBean.logminerWindow);
}