|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.ucsb.adl.middleware.DurationUtils
Time duration-related utilities.
$Log: DurationUtils.java,v $ Revision 1.1 2004/03/11 19:03:34 gjanee Initial revision
| Method Summary | |
static long |
parseDuration(java.lang.String duration)
Converts a string duration specification to an integer number of milliseconds. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static long parseDuration(java.lang.String duration)
throws java.lang.NumberFormatException
s" (seconds), "m" (minutes),
"h" (hours), and "d" (days).
duration - A string duration specification, e.g., "1m".
java.lang.NumberFormatException - If the specification is invalid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||