[R] calculating seconds
Uwe Ligges
ligges at statistik.tu-dortmund.de
Tue Feb 19 19:18:25 CET 2013
On 19.02.2013 18:52, Erin Hodgess wrote:
> Dear R People:
>
> I'm looking at some data which has the time in seconds since 1992/10/8,
> 15:15:42.5
Just ask R to
strptime("1992/10/8,15:15:42.5", "%Y/%m/%d,%H:%M:%OS") + NumberOfSeconds
and you get the actual date after the given amount of NumberOfSeconds.
Including correct timezone / daylight saving stuff / leap seconds etc.
Best,
Uwe Ligges
>
> Are there any functions currently available to "translate" this or should I
> just do my own?
>
> I figured that I'd check first.
>
> Thanks,
> Erin
>
>
More information about the R-help
mailing list