List of utility methods to do Year Current
int | currentDayForYear(long selectTime) current Day For Year Calendar calendar = Calendar.getInstance();
calendar.setTimeInMillis(selectTime);
return calendar.get(Calendar.DAY_OF_YEAR);
|
int | currentYear() current Year return Calendar.getInstance().get(Calendar.YEAR);
|
int | currentYear() Returns the current time of the system Calendar cal = Calendar.getInstance(); int year = cal.get(Calendar.YEAR); return year; |
int | currentYear() current Year java.util.Calendar c = java.util.Calendar.getInstance();
return c.get(java.util.Calendar.YEAR);
|
int | getCurMonthDayNumber(String strYear, String strMonth) get Cur Month Day Number int ret = -1; if ((Integer.parseInt(strMonth) > 0) && (Integer.parseInt(strMonth) <= 12)) { Calendar cal = Calendar.getInstance(Locale.CHINA); cal.clear(); cal.set(new Integer(strYear).intValue(), new Integer(strMonth).intValue() - 1, 1); ret = cal.getActualMaximum(5); return ret; ... |
int | getCurrentYear() get Current Year Calendar cal = GregorianCalendar.getInstance(); cal.setTime(new Date()); int year = cal.get(Calendar.YEAR); return year; |
int | getCurrentYear() Returns the current calendar year return getYear(new Date()); |
String | getCurrentYear() get Current Year int year = Calendar.getInstance().get(Calendar.YEAR); String currentYear = String.valueOf(year); return currentYear; |
int | getCurrentYear() get Current Year return getYear(new Date()); |
int | getCurrentYear() Returns the current year. return getCalendar().get(Calendar.YEAR);
|