[R] Datetime

From: COMTE Guillaume <g.comte_at_alliance-ir.net>
Date: Wed 30 Aug 2006 - 22:30:09 EST


Hi all,

I'm getting confused by date handling.  

I wish to read a date from a file wich is a number of seconds since 1970 (POSIXct).

Then i wish to convert this date to a human readable form (POSIXlt)  

By example :  

ctDate<-1132963200 #"Wed Aug 30 14:24:37 2006"

is(ctDate)

[1] "numeric" "vector"  

ctDate isn't a numeric vector, it is a POSIXct... none of the clues inside the docs has given me the answer, i can't cast it, i can't converti t to POSIXlt because it is wrong class (as.POSIX** don't want to work...)  

What is the trick ??

Any ideas would be great

thks

COMTE Guillaume  

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed Aug 30 22:36:56 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 31 Aug 2006 - 00:23:20 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.