public class DateTimeHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DateTimeHelper.TimeUnits
time units allowed
|
| Constructor and Description |
|---|
DateTimeHelper() |
| Modifier and Type | Method and Description |
|---|---|
static long |
convertMillis(long timeValue,
String timeUnit)
conversion to [ms]
|
static Date |
toDateFromMillis(long millis)
Conversion from system current milliseconds since 1970 to Date
|
static String |
toISOTimeString(Date dateTime)
Returns the ISO time string for a Date
|
public static String toISOTimeString(Date dateTime)
dateTime - (Date, required) to convertpublic static Date toDateFromMillis(long millis)
millis - (long) milliseconds since 1/1/1970public static long convertMillis(long timeValue,
String timeUnit)
timeValue - (long, positive) delay in the unit giventimeUnit - (String) one of the values of DateTimeHelper.TimeUnitsCopyright © 2015. All rights reserved.