[R] read.spss and time/date information

BXC (Bendix Carstensen) bxc at steno.dk
Thu Mar 4 00:39:51 CET 2004


> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch 
> [mailto:r-help-bounces at stat.math.] On Behalf Of 
> torsten at hothorn.deethz.ch
> Sent: Wednesday, March 03, 2004 6:27 PM
> To: Peter Dalgaard
> Cc: r-help at stat.math.ethz.ch
> Subject: Re: [R] read.spss and time/date information
> 
> 
> 
> 
> On Wed, 3 Mar 2004, Peter Dalgaard wrote:
> 
> > Torsten Hothorn <Torsten.Hothorn at rzmail.uni-erlangen.de> writes:
> >
> > > Could anyone give me a a hint how I can convert 13264300800 to 
> > > 2003/02/11 again, please?
> >
> > > ISOdate(1582,10,14)  + 13264300800
> > [1] "2003-02-11 13:00:00 CET"
> > > ISOdate(1582,10,14)  +  13142476800
> > [1] "1999-04-03 14:00:00 CEST"
> >
> > [October 14, 1582 is Day 1 of the Gregorian calendar.]
> >
> 
> I tried January 1th 1970 as "baseline" but I never would have 
> dreamed of October 14, 1582.

This is the day the present Gregorian calendar was instituted, replacing
the
old Julian that did not have leap years. So it is actually quite
sensible
as it is the earliest possible date that is in unbroken sequence to
present
times. 

Actually I am amazed that this has not been chosen as the natural origin
for
any of the R-pakages...

Bendix Carstensen

> 
> Thanks to all responders!
> 
> Torsten
> 
> > --
> >    O__  ---- Peter Dalgaard             Blegdamsvej 3
> >   c/ /'_ --- Dept. of Biostatistics     2200 Cph. N
> >  (*) \(*) -- University of Copenhagen   Denmark      Ph: 
> (+45) 35327918
> > ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: 
> (+45) 35327907
> >
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list 
> https://www.stat.math.ethz.ch/mailman/listinfo> /r-help
> PLEASE 
> do read the posting guide! 
> http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list