Java Utililty Methods Minute Add

List of utility methods to do Minute Add

Description

The list of methods to do Minute Add are organized into topic(s).

Method

DateaddMinutes(Date date, int minutes)
add Minutes
Calendar c = Calendar.getInstance();
c.clear();
c.setTime(date);
c.add(Calendar.MINUTE, minutes);
return c.getTime();
DateaddMinutes(Date in, int minutes)
add Minutes
Calendar cal = Calendar.getInstance();
cal.setTime(in);
cal.add(Calendar.MINUTE, minutes);
return new Date(cal.getTimeInMillis());
DateaddMinutes(Date t, int minutes)
Addiert minuten Minuten auf den Zeitpunkt.
if (minutes == 0)
    return t;
c1.setTime(t);
c1.add(Calendar.MINUTE, minutes);
t = c1.getTime();
return t;
java.util.DateaddMinutes(java.util.Date date, long... minutes)
add Minutes
if (minutes == null) {
    return date;
java.util.Calendar c = java.util.Calendar.getInstance();
c.setTime(date);
for (long minute : minutes) {
    c.add(Calendar.MINUTE, (int) minute);
return c.getTime();
LongaddMinutesToDate(Date initialDateInMillis, Integer minutesToAdd)
add Minutes To Date
Calendar cal = Calendar.getInstance();
cal.setTime(initialDateInMillis);
cal.add(Calendar.MINUTE, minutesToAdd);
return cal.getTimeInMillis();
DateaddMinutesToDate(final Date d, final int minutes)
add Minutes To Date
final Calendar c = Calendar.getInstance();
c.setTime(d);
c.add(Calendar.MINUTE, minutes);
return c.getTime();