Skip to content
Prev 307150 / 398506 Next

Minute Difference

On 10/05/2012 10:56 PM, Rantony wrote:
Hi Antony,
Did you get an answer for this?

oldtime<-strptime("10/5/2012 5:05:00 AM",
  format="%d/%m/%Y %I:%M:%S %p")
oldtime
[1] "2012-05-10 05:05:00"
# now subtract 10 minutes (600 seconds)
oldtime - 600
[1] "2012-05-10 04:55:00 EST"

Jim