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
Durationrepresenting the amount of time in the string; if aNumberFormatExceptionoccurs,Duration.ZERO
-