Displaying 1 result from an estimated 1 matches for "localtime0".
Did you mean:
localtime
2007 Oct 30
1
timezone conversion difficulties with the new US daylight saving time switch over
...ion? It looks to me like
unclass(as.POSIXlt(as.POSIXct("2007-10-30 11:38:47"), "EST5EDT"))$isdst
is inappropriately zero. I tried following the code in
src/main/datetime.c:do_asPOSIXlt, and it looks like this isdst value
comes from a call to localtime() from localtime0() ...
thanks in advance for any help,
Tony Plate
PS. I do not see the same problem in an old version of R (2.2.1)
running under Ubuntu Linux:
> Sys.timezone()
[1] ""
> as.POSIXlt((d <- Sys.time()), "EST5EDT")
[1] "2007-10-29 14:56:49 EDT"
> d
[1] &qu...