Returns a duration value from the given {0}. If the given {0} is null , Duration.From returns null . If the given {0} is ...

Returns a duration value from the given {0}. If the given {0} is null, Duration.From returns null.  If the given {0} is duration, {0} is returned. Values of the following types can be converted to a duration value:
      
  • text: A duration value from textual elapsed time forms (d.h:m:s). See Duration.FromText for details.
  • number: A duration equivalent to the number of whole and fractional days expressed by {0}.
If {0} is of any other type, an error is returned.