[R] Time Zone names on Windows

Glen Sargeant gsargeant at usgs.gov
Tue Oct 20 18:05:22 CEST 2009


Keith,

If you are working within a single time zone, including time zone
information with each record does not seem necessary and you probably are
not recording times to the sub-second.  The best solution may thus be to use
a simpler date/time class that does not include time zone information.  You
should consider the "chron" package and see R News 4/1 for helpful hints.

"chron" makes construction and use of date/time records very easy:

> library(chron)
> dt <- c("10/20/2009")
> tm <- c("11:02:00")
> chron(dt,tm)
[1] (10/20/09 11:02:00)

Good luck!

Glen



Keith-119 wrote:
> 
> 
> My question is that if there is other way to set the tz to GMT+1
> instead using my workaround to have a neutral meaning in my script?
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Time-Zone-names-on-Windows-tp25977196p25977926.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list