Java Timestamp Now getAfterSecond(Timestamp currentDate)

Here you can find the source of getAfterSecond(Timestamp currentDate)

Description

get After Second

License

Apache License

Declaration

public static Timestamp getAfterSecond(Timestamp currentDate) 

Method Source Code


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

import java.sql.Timestamp;

import java.util.Calendar;

public class Main {

    public static Timestamp getAfterSecond(Timestamp currentDate) {
        Calendar calender = Calendar.getInstance();
        calender.setTime(currentDate);/*w  ww  .  j a va 2 s  . co m*/
        calender.add(Calendar.SECOND, 1);
        return new Timestamp(calender.getTimeInMillis());
    }
}

Related

  1. currentTimestampPlus(final long seconds)
  2. generateTimestamp()
  3. generateTimeStamp()
  4. generateTimestamp()
  5. generateTimestamp()
  6. getCurrentAgeForDate(Timestamp birthDate, Timestamp endDate)
  7. getCurrentDateAsTimestamp()
  8. getCurrentDateTimestamp()
  9. getCurrentDBTimestamp()