[R] Function to manage seconds?

2009-10-30 Thread Stefano Leonardi
Hi, I could not find a function that returns a time in hours and minutes given seconds as argument. I looked also in the chron package. I would need something like this: mytime(61) #61 are seconds [1] 00:01:01 mytime(7385) #7385 are seconds [1] 02:03:05 Am I missing something? or should I

Re: [R] Function to manage seconds?

2009-10-30 Thread Gabor Grothendieck
Try this: library(chron) times(100/(24*60*60)) # 100 seconds [1] 00:01:40 On Fri, Oct 30, 2009 at 5:37 AM, Stefano Leonardi stefano.leona...@unipr.it wrote: Hi, I could not find a function that returns a time in hours and minutes given seconds as argument. I looked also in the chron