%% Specify Display Format
% Create a calendar duration array and specify a format that displays the values in terms of months, weeks, days, and time.

L = calendarDuration(1,1,5:9,'Format','mwdt')

%
% Since the format does not include 'y' for years, the input values of 1 year and 1 month display as their sum, 13mo. While 't' must be specified, the time component is not displayed if the hours, minutes, and seconds are all zero.
% Copyright 2015 The MathWorks, Inc.