www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/CurrentTimeAtFutureDateExample.m

    %% Current Time at Future Date
% Add two calendar days to the current date and time.

% Copyright 2015 The MathWorks, Inc.

t = datetime('now') + caldays(2)