Hi,
if you look at my example in recent thread Rép : [R] problem with
as.POSIXct and daylight savings time, it appears that tz argument is
used by as.POSIX.ct
Denis Chabot
Le 09-07-20 à 00:00, Remko Duursma a écrit :
as.POSIXct.dates does not make use of tz:
Ok, but it is supposed to,
On Mon, Jul 20, 2009 at 5:16 AM, Denis Chabotchab...@globetrotter.net wrote:
Hi,
if you look at my example in recent thread Rép : [R] problem with
as.POSIXct and daylight savings time, it appears that tz argument is used
by as.POSIX.ct
Denis Chabot
Le 09-07-20 à 00:00, Remko Duursma a
Dear R-helpers,
I have a problem converting an object made with the 'chron' function
to a POSIXct object:
# Make date based on DOY
dat - chron(dates=232, origin.=c(month=1, day=1, year=2008))
dat
#[1] 08/20/08
# Converting to POSIXct uses current timezone (Sydney):
as.POSIXct(dat)
#[1]
as.POSIXct.dates does not make use of tz:
as.POSIXct.dates
function (x, ...)
{
if (inherits(x, dates)) {
z - attr(x, origin)
x - as.numeric(x) * 86400
if (length(z) == 3L is.numeric(z))
x - x + as.numeric(ISOdate(z[3L], z[1L], z[2L],
0))
as.POSIXct.dates does not make use of tz:
Ok, but it is supposed to, right? Or maybe the documentation can be
updated, because ?as.POSIXct does seem to imply the timezone is used
(as it is for other methods of as.POSIXct).
thanks,
Remko
-
5 matches
Mail list logo