Skip to content
Prev 69637 / 398525 Next

Converting a number of minutes to a difftime

On Thu, 12 May 2005, Martin C. Martin wrote:

            
as.difftime() is quite limited.  You need to get your hands dirty:

    structure(m, units = "mins", class = "difftime")

will do the job.

Alternatively,  Sys.time + (m*60) works.