Creates a duration from the given value.
valueas nullable any) as nullable any
duration value from the given
value. If the given
null. If the given
value is returned. Values of the following types can be converted to a
value is of any other type, an error is returned.
2.525 into a