|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumich.cac.queryengine.DateUtil
Manipulate dates to various formats.
Field Summary | |
static int |
NUM_SECONDS_IN_DAY
Number of seconds in a day |
static java.text.SimpleDateFormat |
xsdDatetime
Format parser for xsd:datetime string |
Constructor Summary | |
DateUtil()
|
Method Summary | |
static long |
convertToEpoch(java.util.Date date)
Convert the data object represented by date to the number of seconds since the EPOCH |
static long |
parseDateTime(java.lang.String datetime)
Parse xsd:dateTime string and return number of seconds since EPOCH |
static long |
parseDuration(java.lang.String duration)
Parse xsd:duration string and return total number of seconds |
static long |
parseSeconds(java.lang.String result)
Convert a String in the format HH:MM:SS to the total number of seconds represented by that String, so 00:01:00 would return 60, as one minute is 60 seconds. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int NUM_SECONDS_IN_DAY
public static java.text.SimpleDateFormat xsdDatetime
Constructor Detail |
public DateUtil()
Method Detail |
public static long convertToEpoch(java.util.Date date)
date
- The data object representing the data
public static long parseSeconds(java.lang.String result)
result
- a String in the format HH:MM:SS
public static long parseDuration(java.lang.String duration)
duration
- The duration in XML Schema xsd:duration format
public static long parseDateTime(java.lang.String datetime)
datetime
- XML Schema xsd:dateTime format
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |