hadley/lubridate — Issue #97: Why is adding dseconds() different from adding seconds()?
Author: kenahoo
Created: 2011-11-04 15:16:36+00:00
State: open

I just discovered the following:

> x <- force_tz(mdy('3/5/2011'), 'America/Chicago')
> x + seconds(14 * 24 * 60 * 60)
[1] "2011-03-19 CDT"
> x + dseconds(14 * 24 * 60 * 60)
[1] "2011-03-19 01:00:00 CDT"

I expected `x + seconds(...)` here to just add the number of seconds, but it seems like it's converting it to a roughly-equivalent number of days, or something, and adding that.

Seconds, unlike the other `period` objects, seems like it should have a constant interpretation in terms of number of seconds it represents.