Android Utililty Methods Hour Add

List of utility methods to do Hour Add

Description

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

Method

StringaddHourTime(int hour)
add Hour Time
GregorianCalendar gcalendar = new GregorianCalendar();
gcalendar.add(Calendar.HOUR, hour);
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
return sdf.format(gcalendar.getTime());