public class DateHelpers extends Object
Modifier | Constructor and Description |
---|---|
protected |
DateHelpers()
Since all of the methods are static, the constructor should never
be used.
|
Modifier and Type | Method and Description |
---|---|
static Date |
endOfDay(Date value)
Return the end of a day containing a specified time
|
static Date |
endOfHour(Date value)
Return the end of an hour containing a specified time
|
static Date |
endOfMinute(Date value)
Return the end of a minute containing a specified time
|
static void |
main(String[] args)
Test driver for class.
|
static Date |
startOfDay(Date value)
Return the start of a day containing a specified time
|
static Date |
startOfHour(Date value)
Return the start of an hour containing a specified time
|
static Date |
startOfMinute(Date value)
Return the start of a minute containing a specified time
|
static Date |
startOfMonth(Date value)
Return the start of a month containing a specified time
|
protected DateHelpers()
public static Date startOfMonth(Date value)
value
- Specified timepublic static Date startOfDay(Date value)
value
- Specified timepublic static Date endOfDay(Date value)
value
- Specified timepublic static Date startOfHour(Date value)
value
- Specified timepublic static Date endOfHour(Date value)
value
- Specified timepublic static Date startOfMinute(Date value)
value
- Specified timepublic static Date endOfMinute(Date value)
value
- Specified time