Tal Galili
2009-Oct-26 21:21 UTC
[R] Time variables changed after reopening a .RData file (bug?)
Hello all, I recently opened a backup ".RData" file which contained (three) "time variables" created in the session I had a few months ago. Upon inspecting those variables I suddenly realized they all got an extra hour to them. So a variable like: morning <- as.difftime("08:00:00") That was defined a few months ago (and saved inside the .RData file) will be: print(morning) Time difference of 9 hours I have no clue how that might have happened. The only reason I can think about was maybe somehow the change in "daylights savings time" effected it - but I wasn't able to reproduce the problem by changing my machine time (after saving the RData, closing R, changing machine time, reopening R with the RData). Any idea way this had happened? ---------------------------------------------- My contact information: Tal Galili E-mail: Tal.Galili@gmail.com Phone number: 972-52-7275845 FaceBook: Tal Galili My Blogs: http://www.talgalili.com (Web and general, Hebrew) http://www.biostatistics.co.il (Statistics, Hebrew) http://www.r-statistics.com/ (Statistics,R, English) [[alternative HTML version deleted]]