%% Round clock Output to Integer Display
% To return the current date and time, use the clock function. Set the output format so that floating-point values display with up to five digits.

format shortg
c = clock

% The sixth element of the date vector output (seconds) is accurate to several digits beyond the decimal point.
%
% To round to integer display format, use the fix function.

fix(c)

% Copyright 2015 The MathWorks, Inc.