Read Opening Hours

read_opening_hours(x)

Arguments

x

A non-missing character vector of opening hours.

Value

A tibble of the Open and Close times by vector element.

Examples

read_opening_hours(character(0))
#> # A tibble: 0 x 3 #> # … with 3 variables: Name <chr>, String <chr>, OpeningHours <list>
read_opening_hours("9:00-17:00")
#> # A tibble: 1 x 3 #> Name String OpeningHours #> <chr> <chr> <list> #> 1 1 9:00-17:00 <tibble [1 × 2]>