public class DateUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DateUtil.Weekday
Maps weekdays to the
Calendar.DAY_OF_WEEK field and long and
short names, respectively. |
| Constructor and Description |
|---|
DateUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
roundMinutesToQuarter(Calendar cal)
Rounds the given calendar object to the nearest 15 minutes point in time.
|
static String |
toString(long ms)
Converts a time given in milliseconds to a convenient string
representation.
|
public static void roundMinutesToQuarter(Calendar cal)
cal - public static String toString(long ms) throws IllegalArgumentException
ms - millseconds (non-negative value)IllegalArgumentException - if ms is negativeCopyright © 2014–2016. All rights reserved.