Displaying 1 result from an estimated 1 matches for "datep2".
Did you mean:
date2
2011 May 31
3
DateTime Math in R - POSIXct
..."character"
>
> dateP <- as.POSIXct(tstamp, origin="1970-01-01", tzone="MDT")
> mode(dateP)
[1] "numeric"
> dateP
[1] "2011-05-22 11:45:00 MDT"
>
> dateN <- as.numeric(dateP)
> dateN
[1] 1306086300
>
> dateP2 <- as.POSIXct(dateN, origin="1970-01-01", tzone="MDT")
> dateP2
[1] "2011-05-22 18:45:00 MDT"
Many thanks.
Galen Moore
[[alternative HTML version deleted]]