powered by
These functions convert character vectors to objects of the hms class. NA values are supported.
NA
parse_hms() accepts values of the form "HH:MM:SS", with optional fractional seconds.
parse_hms()
"HH:MM:SS"
parse_hm() accepts values of the form "HH:MM".
parse_hm()
"HH:MM"
parse_hms(x)parse_hm(x)
parse_hm(x)
An object of class hms.
A character vector
parse_hms("12:34:56") parse_hms("12:34:56.789") parse_hm("12:34")
Run the code above in your browser using DataLab