|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.clif.analyze.lib.oda.util.DateUtil
public final class DateUtil
A utility class. The convert method converts the source object into an Date object given specified type. If no reasonable conversion can be made, throw a OdaException.
Field Summary | |
---|---|
static long |
count
The count. |
Constructor Summary | |
---|---|
DateUtil()
|
Method Summary | |
---|---|
static java.util.Date |
toDate(java.lang.Object source)
Number -> Date new Date((long)Number) String -> Date toDate(String) |
static java.util.Date |
toDate(java.lang.String source,
com.ibm.icu.util.ULocale locale)
convert String with the specified locale to java.util.Date |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static long count
Constructor Detail |
---|
public DateUtil()
Method Detail |
---|
public static java.util.Date toDate(java.lang.Object source) throws OdaException
source
-
OdaException
public static java.util.Date toDate(java.lang.String source, com.ibm.icu.util.ULocale locale) throws OdaException
source
- the String to be convertlocale
- the locate of the string
OdaException
- the oda exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |