|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.types.DateUtils
public class DateUtils
Utility methods for working with anl.aida.types.Dates. This assumes Date is 1-based -- that is, January is month 1 rather than java.util.Date where January is month 0.
Field Summary | |
---|---|
private static java.util.Calendar |
cal
|
Constructor Summary | |
---|---|
DateUtils()
|
Method Summary | |
---|---|
java.util.Date |
toJDate(Date date)
Creates a Java Date from an anl.aida.types.Date. |
long |
toTime(Date date)
Gets the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by the specified Date object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.util.Calendar cal
Constructor Detail |
---|
public DateUtils()
Method Detail |
---|
public java.util.Date toJDate(Date date)
date
- the Date type
public long toTime(Date date)
date
- the Date whose time we want
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |