From erich.neuwirth at univie.ac.at  Fri Sep  1 11:27:16 2006
From: erich.neuwirth at univie.ac.at (erich.neuwirth at univie.ac.at)
Date: Fri,  1 Sep 2006 11:27:16 +0200 (CEST)
Subject: [Rd] Date conversion with as.POSIXct and as.POSIXlt (PR#9196)
Message-ID: <20060901092716.784165866B@slim.kubism.ku.dk>

Full_Name: Erich Neuwirth
Version: 2.3.1
OS: Windows XP, Linux
Submission from: (NULL) (131.130.135.167)


Converting Sys.Date() to a POSIX compliant time type in different ways 
produces inconsistent results:
> Sys.date()
[1] "2006-09-01"
> as.POSIXct(Sys.Date())
[1] "2006-09-01 02:00:00 CEST"
> as.POSIXlt(Sys.Date())
[1] "2006-09-01"
> as.POSIXct(as.POSIXlt(Sys.Date()))
[1] "2006-09-01 01:00:00 CEST"

Applying as.POSIXct directly or first applying as.POSIXlt and then
applying as.POSIXct produces different results.

This happens on Linux with timezone "CEST"
> Sys.time()
[1] "2006-09-01 11:03:36 CEST"
and on Windows with timezone "W. Europe Daylight Time"
> Sys.time()
[1] "2006-09-01 11:11:15 W. Europe Daylight Time"




[Rd] Date conversion with as.POSIXct and as.POSIXlt (PR#9196)
erich.neuwirth at univie.ac.at