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 wrote:
> Hello R users,
>
> Is anyone familiar with an R function that convert
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@r-project.org
2 matches
Mail list logo