Date arithmetic fails (PR#1819)
I have partially fixed this bug. Now arithmetic works fine but I still
have problems with TZ, i.e.
> a=strptime("2002-06-01 12:15:01","%Y-%m-%d %H:%M:%S")
> a
[1] "2002-06-01 12:15:01"
> a+0
[1] "2002-06-01 05:15:01"
> a+3600
[1] "2002-06-01 06:15:01"
> b=c(a)
> b
[1] "2002-06-01 05:15:01"
TZ is set to +0100 dy default on the Carbon R.
stefano
On Domenica, luglio 21, 2002, at 08:26 , RML27@cornell.edu wrote:
Full_Name: Ronnen Levinson Version: 1.5.1 OS: Mac OS 10.1 Submission from: (NULL) (12.232.201.92) The value returned by strptime behaves badly after arithmetic operation and/or combination.
a=strptime("2002-06-01 12:15:01","%Y-%m-%d %H:%M:%S")
a
[1] "2002-06-01 12:15:01"
a+0
[1] "1932-04-25 21:46:45"
a+3600
[1] "1932-04-25 22:46:45" b=c(a)
b
[1] "1932-04-25 21:46:45" -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- .-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R- FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel- request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ ._._._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._