From lorenz at usgs.gov  Mon Dec  7 21:32:20 2015
From: lorenz at usgs.gov (Lorenz, David)
Date: Mon, 7 Dec 2015 14:32:20 -0600
Subject: [Rd] inconsistency in POSIXlt
Message-ID: <CALxY2Lc1vNT_92fHid7bPmLyd-twYrjRbfBqV6xf7=WctW=omw@mail.gmail.com>

The documentation for the POSIXlt class states '"POSIXlt" objects will
often have an attribute "tzone", a character vector of length 3 giving the
time zone name from the TZ environment variable and the names of the base
time zone and the alternate (daylight-saving) time zone. Sometimes this may
just be of length one, giving the time zone
<http://127.0.0.1:25207/library/base/help/time%20zone> name.' But the
 constructor for the class, as.POSIXlt, accepts only a single value for the
tz argument--an error is generated if, for example the tzone value of
length 3 is extracted from a POSIXlt object and used as the tz argument.

It would seem to me that to be consistent, the as.POSIXlt function should
accept a vector of length 3 as the tz argument.

	[[alternative HTML version deleted]]



[Rd] inconsistency in POSIXlt
Lorenz, David