formatDuration(0)
formatDuration(1)
formatNanoseconds(34)
formatMicroseconds(235)
formatMilliseconds(2487)
formatSeconds(7213)
formatDuration(c(0, 1, 1000, 2039, 205958, 284859249525))
Run the code above in your browser using DataLab