# NOT RUN {
## create ddate arrays..
ddate <- as.POSIXct("2019/04/20 12:00", tz = "UTC")
ddate1 <- rep(ddate, 5)
ddate2 <- as.POSIXct(c("2019/04/12 08:00", "2019/04/16 10:00", "2019/04/20 12:00",
"2019/04/21 16:00", "2019/04/22 20:00"), tz = "UTC")
## .. and calculate distance:
ddateDistance(ddate1, ddate2, normalizeBy = 5)
# }
Run the code above in your browser using DataLab