Java Date Create createFutureDate(int min)

Here you can find the source of createFutureDate(int min)

Description

create Future Date

License

Open Source License

Declaration

public static Long createFutureDate(int min) 

Method Source Code


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

import java.util.Calendar;

public class Main {
    public static Long createFutureDate(int min) {
        Calendar cal = Calendar.getInstance();
        cal.add(Calendar.MINUTE, min);
        return cal.getTimeInMillis();
    }//from  www  .j a  va 2  s  . c o  m
}

Related

  1. createDates(int yy, int mm, int dd, int hh, int min, int ss)
  2. createDateString(long startDate, long endDate)
  3. createDateTime(Date date, Date time)
  4. createDateTime(int year, int month, int day, int hour, int minute, int second, String timezone)
  5. createFutureDate()
  6. createInitialDateQuery(final Date date)
  7. createTime(Date date)
  8. date()
  9. date(Date d)