public class DateUtils extends Object
Modifier and Type | Field and Description |
---|---|
static TimeZone |
GMT_TIME_ZONE |
Constructor and Description |
---|
DateUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
format(long time)
Returns formatted time, passed as milliseconds (long), with millisecond precision
|
static String |
format(Object object) |
static String |
formatToSeconds(long time)
Formats passed time, passed as milliseconds, with second precision
|
static String |
formatToSeconds(Object object) |
static long |
parse(String time) |
static long |
parseAsSeconds(String time) |
public static final TimeZone GMT_TIME_ZONE
public static String format(long time)
time
- Time to formatpublic static long parse(String time) throws ParseException
ParseException
public static String formatToSeconds(long time)
time
- Time to formatpublic static long parseAsSeconds(String time) throws ParseException
ParseException
Copyright © 2016. All rights reserved.