Java Timestamp Now currentTimestampPlus(final long seconds)

Here you can find the source of currentTimestampPlus(final long seconds)

Description

current Timestamp Plus

License

Apache License

Declaration

public static Timestamp currentTimestampPlus(final long seconds) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.sql.Timestamp;

public class Main {
    public static Timestamp currentTimestampPlus(final long seconds) {
        return new Timestamp(System.currentTimeMillis() + seconds * 1000);
    }//from   ww  w  .j a v  a 2 s  .  c o  m
}

Related

  1. currentTimeStamp()
  2. currentTimestamp()
  3. currentTimestamp()
  4. currentTimestamp()
  5. currentTimestamp2String(String pattern)
  6. generateTimestamp()
  7. generateTimeStamp()
  8. generateTimestamp()
  9. generateTimestamp()