Skip to content
Prev 306889 / 398506 Next

"options" in R

In S+ 8.2 help(options) says

   time.zone
   a character string specifying the default time zone when none is given in a time object.

Its default value is "GMT".  It is used as the default value of the 'zone' argument to the
constructors of "timeDate" objects (where it says "time object" it could say "timeDate
object", if it wanted to be pedantic).

E.g., with the default "GMT" (and the US-default versions of the other timeDate-related
options) we get
[1] 11/02/2012 19:00:00.000 11/03/2012 07:00:00.000 11/03/2012 19:00:00.000 11/04/2012 07:00:00.000
 [5] 11/04/2012 19:00:00.000 11/05/2012 07:00:00.000 11/05/2012 19:00:00.000 11/06/2012 07:00:00.000
 [9] 11/06/2012 19:00:00.000 11/07/2012 07:00:00.000
[1] "GMT"
[1] 11/02/2012 19:00:00.000 11/03/2012 07:00:00.000 11/03/2012 19:00:00.000 11/04/2012 06:00:00.000
 [5] 11/04/2012 18:00:00.000 11/05/2012 06:00:00.000 11/05/2012 18:00:00.000 11/06/2012 06:00:00.000
 [9] 11/06/2012 18:00:00.000 11/07/2012 06:00:00.000
[1] "Pacific"
[1] 11/02/2012 19:00:00.000 11/03/2012 07:00:00.000 11/03/2012 19:00:00.000 11/04/2012 07:00:00.000
 [5] 11/04/2012 19:00:00.000 11/05/2012 07:00:00.000 11/05/2012 19:00:00.000 11/06/2012 07:00:00.000
 [9] 11/06/2012 19:00:00.000 11/07/2012 07:00:00.000
[1] "Arizona"

(US/Pacific switches to 'standard' ('winter') time in that time period, but GMT and Arizona do not switch.)

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com