Package org.apache.commons.lang3.time
Class CalendarUtils
- java.lang.Object
-
- org.apache.commons.lang3.time.CalendarUtils
-
-
Field Summary
Fields Modifier and Type Field Description static CalendarUtilsINSTANCEThe singleton instance forCalendar.getInstance().
-
Constructor Summary
Constructors Constructor Description CalendarUtils(Calendar calendar)Creates an instance for the given Calendar.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDayOfMonth()Gets the current day of month.intgetMonth()Gets the current month.intgetYear()Gets the current year.
-
-
-
Field Detail
-
INSTANCE
public static final CalendarUtils INSTANCE
The singleton instance forCalendar.getInstance().
-
-
Constructor Detail
-
CalendarUtils
public CalendarUtils(Calendar calendar)
Creates an instance for the given Calendar.- Parameters:
calendar- A Calendar.
-
-