public final class DateTimeUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
formatTimeWithMS(long time)
Format time (hour, minute, second and millisecond).
|
static String |
formatWithMS(long time)
Format date time with milli secconds.
|
static String |
formatWithoutMS(long time)
Format date time without milli secconds.
|
static void |
setFormat(String ymd,
String sep1,
String hms,
String ms,
String sep2,
String tz)
Set date and time format.
|
public static void setFormat(String ymd, String sep1, String hms, String ms, String sep2, String tz)
ymd - format of year, month and day.sep1 - separator between ymd and hms.hms - format of hour, minulte and second.ms - format of millisecond.sep2 - separator between hms and tz.tz - timezone.public static String formatWithMS(long time)
time - time of UTC.public static String formatWithoutMS(long time)
time - time of UTC.public static String formatTimeWithMS(long time)
time - time of UTC.Copyright © 2016. All rights reserved.