The {@link #valueOf} method can convert strings such as "3.5 minutes", "5hours", into Duration instances. The recognized units of time are the "millisecond", "second", "minute" "hour" and "day". The unit name may be followed by an "s". Thus, "2 day" and "2 days" are equivalent. In the absence of a time unit specification, milliseconds are assumed. @author Ceki Gulcu
|
|
|
|
|
|
|
|
|
|
|
|