Package com.gmt2001.util
Class DurationString
java.lang.Object
com.gmt2001.util.DurationString
Converts duration strings into a
Duration
- Author:
- gmt2001
-
Method Summary
-
Method Details
-
from
Converts the given input string into aDuration
- Parameters:
input
- a string to parse in the formatnWnDnHnMnS
- Returns:
- a
Duration
representing the amount of time in the string; if aNumberFormatException
occurs,Duration.ZERO
-