Java Timestamp afterMinutes(Timestamp date, long min)

Here you can find the source of afterMinutes(Timestamp date, long min)

Description

after Minutes

License

Open Source License

Declaration

public static Timestamp afterMinutes(Timestamp date, long min) 

Method Source Code


//package com.java2s;
import java.sql.Timestamp;

public class Main {
    private static final long ONE_MINUTE = 60000;

    public static Timestamp afterMinutes(Timestamp date, long min) {
        long fTime = date.getTime() + min * ONE_MINUTE;
        return new Timestamp(fTime);
    }//from  w w  w  .  j  a v  a2  s .  co m
}

Related

  1. addMonths(Timestamp refDate, int nrOfMonthsToAdd)
  2. addTime(java.sql.Timestamp start, int year, int month, int day)
  3. adjustTimestamp(Timestamp stamp, int adjType, int adjQuantity, TimeZone timeZone, Locale locale)
  4. adjustTimestamp(Timestamp stamp, Integer adjType, Integer adjQuantity)
  5. adjustTimestamp(Timestamp timestamp, String timezone, int gmtOffset)
  6. argMapTimestamp(Map argMap, Map argMapNotUsed, String key)
  7. beforeTimestamp2Safety(Timestamp ts1, Timestamp ts2)
  8. between(Timestamp t1, Timestamp t2)
  9. calcRealTime(Timestamp beginTime, Timestamp endTime)