标签: r
我有2个日期:
date1 = as.POSIXct("2017-04-12 17:10:59 GMT") date2 = as.POSIXct("2017-04-12 01:56:00 GMT") diff = difftime(date1,date2,units = "mins")
输出:
Time difference of 914.9833 mins
(实际o / p:195分钟)