Java Date Before getDateBeforeSomeMinutes(int minute, long timestamp)

Here you can find the source of getDateBeforeSomeMinutes(int minute, long timestamp)

Description

get Date Before Some Minutes

License

Artistic License

Declaration

public final static long getDateBeforeSomeMinutes(int minute, long timestamp) 

Method Source Code

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

import java.util.Calendar;

public class Main {

    public final static long getDateBeforeSomeMinutes(int minute, long timestamp) {
        Calendar c = Calendar.getInstance();
        c.setTimeInMillis(timestamp);//from  ww  w .j a  v  a2 s.  c  o  m
        c.add(Calendar.MINUTE, minute);
        return c.getTimeInMillis();
    }
}

Related

  1. getDateBefore(String d, int day)
  2. getDateBeforeHours(Date date, int hours)
  3. getDateBeforeNextMonth(Date date, Integer month, Integer day)
  4. getDateBeforeOrAfter(int iDate)
  5. getDateBeforeOrAfterV2(int idx)
  6. getDateBeforeTheDay(String day, int num)
  7. getDateBeforeToday(int num)
  8. getDateBeforTwelveMonth()
  9. getDateTimeAfterOfBeforeHour(Integer AfterOfBeforeHour)