Hi, I'm wondering what's the right value for specifying "America/New_York" time zone on a windows machine? I got my code which specify this time zone on as.POSIXct function work properly with this value on a linux machine. But it keeps giving me complaint on windows. Thank you. Cheers, Robert
On Sat, 14 May 2011, Robert A'gata wrote:> Hi, > > I'm wondering what's the right value for specifying "America/New_York" > time zone on a windows machine? I got my code which specify this time > zone on as.POSIXct function work properly with this value on a linux > machine. But it keeps giving me complaint on windows. Thank you.Look in C:\Program Files\R\R-version\share\zoneinfo My zoneinfo does contain "America/New_York". Perhaps you should provide a reproducible example, like the posting guide tells you to. --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k
On May 14, 2011, at 2:51 PM, Robert A'gata wrote:> Hi, > > I'm wondering what's the right value for specifying "America/New_York" > time zone on a windows machine? I got my code which specify this time > zone on as.POSIXct function work properly with this value on a linux > machine. But it keeps giving me complaint on windows. Thank you.See what this give you: as.POSIXlt((d <- Sys.time()), "EST5EDT")> > Cheers, > > Robert > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.David Winsemius, MD West Hartford, CT