Convert to time from epoch
try this:
x <- Sys.time() str(x)
POSIXct[1:1], format: "2009-11-11 18:40:10"
x
[1] "2009-11-11 18:40:10 EST"
as.numeric(x) # secs from 1/1/1970
[1] 1257982810
On Wed, Nov 11, 2009 at 6:29 PM, Alon Ben-Ari <alon.benari at gmail.com> wrote:
Hello R users, Is anyone familiar with an R function that converts a time expression ( POSIx for example ) to ?time (seconds/minutes) from epoch? I was unable to find any Best, Alon ? ? ? ?[[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org 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.
Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve?