%% Convert Text to Duration Arrays
% Convert a character vector representing a time as hours, minutes, and seconds.

T = '6:34:12';
D = duration(T)

%
% Convert a cell array of character vectors.

T = {'12:54:37','8:03:12'};
D = duration(T)

%
% Convert text that also has a day component. For display, the default format for duration arrays converts the number of days to hours.

T = '1:00:54:21';
D = duration(T)

%
% Copyright 2012 The MathWorks, Inc.