I am running R 2.15.1 on a Mac with OS X Mountain Lion. I am trying to use the package lubridate(v 1.1.0) to generate a sequence of times in the US Eastern Time Zone for 2011 at 15 minute intervals. It seems that it should work as follows:
d0 <- mdy_hms("1/1/2011 5:00:00", tz="UTC")
dspan <- d0 + c(0:35039) * minutes(15)
espan <- with_tz(dspan,tz="America/New_york")
Now, in 2011, daylight saving time began at 2 a.m. on March 13. The first 16 espan values on this date are:
espan[(month(espan)==3)&(day(espan)==13)][1:16]
[1] "00:00:00 EST" "00:15:00 EST" "00:30:00 EST" "00:45:00 EST"
[5] "01:00:00 EST" "01:15:00 EST" "01:30:00 EST" "01:45:00 EST"
[9] "03:00:00 EDT" "03:15:00 EDT" "03:30:00 EDT" "03:45:00 EDT"
[13] "04:00:00 EDT" "04:15:00 EDT" "04:30:00 EDT" "04:45:00 EDT"
In the above release, I deleted the dates to match here. But that gives me what I expect. Time one hour after 1 am - 3 am. However, daylight saving time ended on November 6 and here are the first 16 espan values on this date:
espan[(month(espan)==11)&(day(espan)==6)][1:16]
[1] "00:00:00 EDT" "00:15:00 EDT" "00:30:00 EDT" "00:45:00 EDT"
[5] "01:00:00 EDT" "01:15:00 EDT" "01:30:00 EDT" "01:45:00 EDT"
[9] "01:00:00 EDT" "01:15:00 EDT" "01:30:00 EDT" "01:45:00 EDT"
[13] "02:00:00 EST" "02:15:00 EST" "02:30:00 EST" "02:45:00 EST"
1 AM EDT ? 1 1 ? lubridate ?