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 Exception
Exception
public static Calendar toLocalCustomFormatCalendar(String calString, String format) throws ParseException
ParseException
public static Calendar toCalendar(String calString, DateUtils.FormatType formatType) throws ParseException
ParseException
public static double getTimeInSecs(Calendar cal, Calendar epoch) throws Exception
Exception
public static String toString(double seconds)
public static long getTimeInMillis(Calendar cal, Calendar epoch) throws Exception
Exception
Copyright © 1999-2014 Apache OODT. All Rights Reserved.