|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.larsan.urd.util.Times
A time format class for the Urd configuration. This format looks like this: 'amounttoken', where token is one of the following.
ms = milliseconds
s = seconds
m = minutes
h = hours
d = days
So that '7d' would be seven days and '16S' would be 16 seconds.
| Method Summary | |
static long |
toMillis(java.lang.String time)
Get raw milliseconds from a time string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static long toMillis(java.lang.String time)
throws java.lang.NumberFormatException
time - String time to parse
java.lang.NumberFormatException - If the string is malformed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||