Create duration array from numeric values
The duration
function creates an
array that represents elapsed time in units of fixed length, such
as hours, minutes, and seconds. You also can create elapsed times
in terms of fixed-length (24-hour) days and fixed-length (365.2425-day
long) years.
additionally
specifies the format in which D
= duration(___,'Format',displayFormat
)D
displays. You can
use this syntax with any of the arguments from the previous syntaxes.