Convert input in hour-minute format to time

as_hm(x)

Arguments

x

Input variable

Value

Time variable of class Period

Examples

as_hm("12:45")
#> [1] "12H 45M 0S"
if (FALSE) { as_hm("12:45") %>% minute() }