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
CommonsException
public static Calendar toTai(Calendar cal) throws CommonsException
CommonsException
public static Calendar getCurrentUtcTime()
public static Calendar getCurrentLocalTime()
public static Calendar getCurrentTaiTime() throws CommonsException
CommonsException
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 CommonsException
CommonsException
public static String toString(double seconds)
public static long getTimeInMillis(Calendar cal, Calendar epoch) throws CommonsException
CommonsException
public static void main(String[] args) throws ParseException, CommonsException
ParseException
CommonsException
Copyright © 1999–2017 Apache OODT. All rights reserved.