Strange strptime behavior in R

后端 未结 1 1035
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-22 07:56

I experience very strange behaviour of strptime parsing.

This is my R session on windows machine

> R.Version()$version.string
[1] \"R version 2.15.2 (         


        
1条回答
  •  [愿得一人]
    2021-01-22 08:29

    Are you in Israel? Googling 'daylight savings time "march 29"' shows that in 2013 DST started on March 29 in Israel, e.g. http://www.timeanddate.com/worldclock/clockchange.html?n=110 ... differences in locale/time zone settings between the two computers you tested could certainly explain this, if one were set to an Israeli time zone and the other weren't. You can check this by using tz="GMT" ...

    PS: I looked at your profile and see that you are indeed in Israel. I didn't look before I initially posted the answer!

    PPS: A very large fraction of queries about date-time conversion turn out to be about timezone, and specifically daylight-savings-time, issues, which is what led me to the answer in the first place.

    0 讨论(0)
提交回复
热议问题