%% Test Whether Current Time Occurs During DST
% To test whether the current date and time occur during Daylight Saving Time (DST), use the second output of the clock function. tf is 1 (true) if c occurs during DST, and 0 (false) otherwise.

format shortg
[c tf] = clock

% Copyright 2012 The MathWorks, Inc.