Java Utililty Methods Hour Next

List of utility methods to do Hour Next

Description

The list of methods to do Hour Next are organized into topic(s).

Method

DatenextHour(Date date)
next Hour
Calendar cal = Calendar.getInstance();
cal.setTime(date);
cal.add(Calendar.HOUR_OF_DAY, 1);
return cal.getTime();
DatenextHour(Date date)
Return the next hour's date(24H)
Calendar cal = getCalendar(date);
cal.add(Calendar.HOUR_OF_DAY, 1);
return cal.getTime();
DatenextHour(Date then)
next Hour
return next(then, Calendar.HOUR_OF_DAY, 1, 10);