Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upnew_interval output with Date object inputs #219
Comments
|
It's the same interval but in different timezones. It's not necessarily wrong, but it goes agains the value of Thanks. |
I obtain unexpected results when giving
Dateobjects tonew_interval. Shouldn't the below code give the same output in both cases?new_interval(ymd('2011-01-01'), ymd('2013-01-01'))## 2011-01-01 UTC--2013-01-01 UTCnew_interval(as.Date('2011-01-01'), as.Date('2013-01-01'))## 2010-12-31 18:00:00 CST--2012-12-31 18:00:00 CSTsessionInfo()R version 3.0.2 (2013-09-25)Platform: x86_64-w64-mingw32/x64 (64-bit)locale:[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_UnitedStates.1252[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C[5] LC_TIME=English_United States.1252attached base packages:[1] stats graphics grDevices utils datasets methods baseother attached packages:[1] lubridate_1.3.2loaded via a namespace (and not attached):[1] digest_0.6.3 memoise_0.1 plyr_1.8 stringr_0.6.2 tools_3.0.2