Java SQL Time getFutureTime(int month)

Here you can find the source of getFutureTime(int month)

Description

get Future Time

License

Open Source License

Declaration

public static Timestamp getFutureTime(int month) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.sql.Timestamp;

import java.util.Calendar;

public class Main {
    public static Timestamp getFutureTime(int month) {
        Calendar c = Calendar.getInstance();
        c.add(Calendar.MONTH, month);
        return new Timestamp(c.getTimeInMillis());
    }//  www .j  a  v a 2  s . c  o  m
}

Related

  1. getClosestIDByTime(Connection con, String table, long time)
  2. getDateTimeValue(ResultSet result, String strField, String strDateFormat)
  3. getDBTime(String yyyyMMddHHmmss)
  4. getFormatDateTimeDesc(long longDate)
  5. getFullDateTime(ResultSet rs, String column)
  6. getGrandfatheredTime()
  7. getIntervalDays(Date time1, Date time2)
  8. getJoinedSysDateTime()
  9. getLastTimeOfDay(Calendar calendar)