powered by
HmsToSec - Converts a vector of h:m:s to seconds.
HmsToSec
SecToHms - Converts a vector of seconds to h:m:s.
SecToHms
HmsToSec(x) SecToHms(x, digits = NULL)
A vector of times in h:m:s (for HmsToSec) or seconds (for SecToHms).
the number of digits to use for potential fractions of seconds.
HmsToSec - Returns a vector of times in seconds.
SecToHms - Returns a vector of times in h:m:s format.
times
# NOT RUN { HmsToSec(c("02:00:03", "04:03:01")) HmsToSec(SecToHms(c(222, 1234, 55))) SecToHms(c(256, 3456, 56565)) # }
Run the code above in your browser using DataLab