The detectdst
function detects, when the change for the DST starts and ends. It
assumes that the frequency of data is not lower than hourly.
The detectleap
function does similar for the leap year, but flagging the 29th
of February as a starting and to the 28th of February next year as the ending dates.
In order for the methods to work, the object needs to be of either zoo / xts or POSIXt
class and should contain valid dates.