%% Find Time Zone Offset
% Create a datetime array in the time zone for New York City.

t1 = datetime('today','TimeZone','America/New_York');
t = dateshift(t1,'end','month',[1:3:9])

%
% Find the time zone offset from UTC and the time shift for Daylight Saving Time for each datetime value.

[dt,dst] = tzoffset(t)

% Copyright 2015 The MathWorks, Inc.