The argument is composed of a sequence of values each followed by a time unit: "d" for days, "h" for hours, "m" for minutes, "s" for seconds and "ms" for milliseconds.
The argument is composed of a sequence of values each followed by a time unit: "d" for days, "h" for hours, "m" for minutes, "s" for seconds and "ms" for milliseconds. The general format is: "xdxhxmxsxms", where "x" denotes a number (a sequence of digits). Each number/unit part is optional. The unit identifiers are case sensitive (lower case is mandatory). No whitespace is allowed.
the string to be converted
a new time converted from the string
Time("5m12s125ms") //5 minutes, 12 seconds and 125 milliseconds
Time("3d25m") //3 days and 25 minutes
IllegalArgumentException
if the string cannot be converted to Time