Skip to content
Prev 328992 / 398500 Next

From POSIXct to numeric and back with time zone

On Aug 23, 2013, at 1:22 PM, Jeff Newmiller wrote:

            
I pointed out that in the case of a first argument being character or factor that as.POSIXct.default passes its arguments to `as.POSIXlt' (for which there are a battery of methods as well. If the argument was numeric that processing did not occur, and I see no checks on the validating of the tz argument when as.POSIXct.numeric is called.
So your advice to me would be to use Set.sysenv(TZ="America/Los_Angeles") and to use a +/-NN00 format for processing character data?