Skip to content
Prev 69635 / 398525 Next

Converting a number of minutes to a difftime

Hi,

I have a variable "m" that contains the number of minutes that something 
lasted, e.g.

m <- 139

I'd like to convert it to a difftime, so I can add it to the POSIXct 
start time.  But as.difftime seems to want a character string, with at 
most two characters for the minutes.  All other conversion functions 
seem to take strings as well.  What am I missing?

Thanks,
Martin