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]]

______________________________________________
[email protected] 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.

Reply via email to