%% Create Duration Array of Fixed-Length Days

X = magic(2);
D = days(X)

%
% Add each number of fixed-length days to the current date and time.

t = datetime('now') + D

% Copyright 2015 The MathWorks, Inc.