I want to subtract 1 day from the POSIX date and end up in DST.
For example, when I add a day:
> as.POSIXct('2009-03-08 23:00:00.000') + 86400
[1] "2009-03-09 23:00:00 EDT"
But when I go, he biases:
> as.POSIXct('2009-03-08 23:00:00.000') - 86400
[1] "2009-03-07 22:00:00 EST"
What is the best way to deal with absolute time differences regarding DST? I usually do this by converting times to strings and processing them separately so that DST is not applied.
Shane source
share