Android Utililty Methods Calendar Create

List of utility methods to do Calendar Create

Description

The list of methods to do Calendar Create are organized into topic(s).

Method

longgetNowTime()
get Now Time
return Calendar.getInstance().getTime().getTime();
CalendarGetLocalCalendar()
Get Local Calendar
return Calendar.getInstance(TimeZone.getTimeZone("Europe/London"));
CalendargetCalendar()
get Calendar
Calendar calendar = Calendar.getInstance();
return calendar;
CalendargetCalendar(int day, int month, int year)
get Calendar
Calendar cal = getInstance(new SimpleTimeZone(0, "GMT"));
cal.clear();
cal.set(YEAR, year);
cal.set(MONTH, month);
cal.set(DAY_OF_MONTH, day);
return cal;