public class DateUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DateUtils.FormatType |
| Modifier and Type | Field and Description |
|---|---|
static Calendar |
julianEpoch |
static Calendar |
tai93epoch |
| Modifier and Type | Method and Description |
|---|---|
static Calendar |
getCurrentLocalTime() |
static Calendar |
getCurrentTaiTime() |
static Calendar |
getCurrentUtcTime() |
static int |
getLeapSecsForDate(Calendar utcCal) |
static long |
getTimeInMillis(Calendar cal,
Calendar epoch) |
static double |
getTimeInSecs(Calendar cal,
Calendar epoch) |
static void |
main(String[] args) |
static Calendar |
toCalendar(String calString,
DateUtils.FormatType formatType) |
static String |
toCustomLocalFormat(Calendar cal,
String format) |
static Calendar |
toLocal(Calendar cal) |
static Calendar |
toLocalCustomFormatCalendar(String calString,
String format) |
static String |
toString(Calendar cal) |
static String |
toString(double seconds) |
static Calendar |
toTai(Calendar cal) |
static Calendar |
toUtc(Calendar cal) |
public static Calendar tai93epoch
public static Calendar julianEpoch
public static int getLeapSecsForDate(Calendar utcCal) throws CommonsException
CommonsExceptionpublic static Calendar toTai(Calendar cal) throws CommonsException
CommonsExceptionpublic static Calendar getCurrentUtcTime()
public static Calendar getCurrentLocalTime()
public static Calendar getCurrentTaiTime() throws CommonsException
CommonsExceptionpublic static Calendar toLocalCustomFormatCalendar(String calString, String format) throws ParseException
ParseExceptionpublic static Calendar toCalendar(String calString, DateUtils.FormatType formatType) throws ParseException
ParseExceptionpublic static double getTimeInSecs(Calendar cal, Calendar epoch) throws CommonsException
CommonsExceptionpublic static String toString(double seconds)
public static long getTimeInMillis(Calendar cal, Calendar epoch) throws CommonsException
CommonsExceptionpublic static void main(String[] args) throws ParseException, CommonsException
ParseExceptionCommonsExceptionCopyright © 1999–2017 Apache OODT. All rights reserved.