|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.wildcat.util.TimeUtil
public class TimeUtil
Date and Time helper class.
| Constructor Summary | |
|---|---|
TimeUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
format(long timeStamp)
Format a timestamp into a human readable String. |
static long |
now()
Get current time timestamp. |
static long |
parse(java.lang.String date)
Compute a timestamp from a human readable String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeUtil()
| Method Detail |
|---|
public static java.lang.String format(long timeStamp)
timeStamp - a timestamp
FORMAT
public static long parse(java.lang.String date)
throws java.text.ParseException
date - a Date and Time in a String representation
java.text.ParseException - if date can't be parsed according to
FORMATpublic static long now()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||