dt2str {cwhmisc} | R Documentation |
Convert time difference to string depending on switch.
dt2str(dt,verbose=FALSE)
dt |
Time difference in seconds |
verbose |
If TRUE , then "hours minutes seconds", else "::" |
String representing the time difference.
Christian W. Hoffmann <c-w.hoffmann@sunrise.ch>
http://www.wsl.ch/personal_homepages/hoffmann/index_EN
time1 <- Sys.time() x <- 0 for (i in 1:100000) x <- x+1 time2 <- Sys.time() dt2str(unclass(time2)-unclass(time1)) dt2str(unclass(time2)-unclass(time1),TRUE)