Message-ID: <Pine.A41.4.44.0304211415490.21612-100000@homer14.u.washington.edu>
Date: 2003-04-21T21:17:31Z
From: Thomas Lumley
Subject: Dates in read.spss
In-Reply-To: <20030421164607.34f50583.fharrell@virginia.edu>
On Mon, 21 Apr 2003, Frank E Harrell Jr wrote:
> I am using read.spss in the foreign package to read an SPSS save file.
> For date variables I get huge values such as 11489990400. Does anyone
> know how to convert these values to R POSIXct date objects? Thanks in
> advance -Frank
>
I believe it is
ISOdate(1584,10,14)+11489990400
that is, the dates are seconds since 14 October 1584
I don't know if R and SPSS necessarily agree on how long ago that was on
all machines, though.
-thomas