parse
Parse the given value to a duration.
Return
a duration
Parameters
value
the value to parse
Parse the given value to a duration.
Return
a duration
Parameters
value
the value to parse
unit
the duration unit to use if the value doesn't specify one (null
will default to ms)