[R] Function to manage seconds?

Stefano Leonardi stefano.leonardi at unipr.it
Fri Oct 30 10:37:27 CET 2009

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 write it by myself?
Thank you

  Stefano Leonardi
  Dipartimento di Scienze Ambientali
  Universita` di Parma               E-mail: stefano.leonardi at unipr.it
  Viale Usberti 11/A                            Phone : +39-0521-905659
  43100 PARMA  (Italy)                          Fax   : +39-0521-905402

More information about the R-help mailing list