t1<-as.POSIXct("2017-03-02 11:58:20")
t2<-as.POSIXct("2017-03-02 12:00:05")
print(lubridate::as.duration(lubridate::interval(t1,t2)))
[1] "105s (~1.75 minutes)"
Is it possible to have the duration expressed in HH:MM:SS? So in this case it would be:
00:01:45