= R language == timediff in hours out <- as.POSIXct("6/14/2018 6:42:52 PM", format="%m/%d/%Y %H:%M:%S") as.numeric(difftime(out, Sys.time(), units="hour"))