public class CalendarUtils extends Object
Calendar
s.Modifier and Type | Field and Description |
---|---|
static CalendarUtils |
INSTANCE
The singleton instance for
Calendar.getInstance() . |
Constructor and Description |
---|
CalendarUtils(Calendar calendar)
Creates an instance for the given Calendar.
|
Modifier and Type | Method and Description |
---|---|
int |
getDayOfMonth()
Gets the current day of month.
|
int |
getMonth()
Gets the current month.
|
int |
getYear()
Gets the current year.
|
public static final CalendarUtils INSTANCE
Calendar.getInstance()
.public CalendarUtils(Calendar calendar)
calendar
- A Calendar.public int getDayOfMonth()
public int getMonth()
public int getYear()
Copyright © 2001–2020 The Apache Software Foundation. All rights reserved.