parse_time <- function(x) {
chk_time_regex(x)
hms::parse_hm(x)
}
parse_interval <- function(x) {
chk_interval_regex(x)
x <- string_split(x)
tibble::tibble(
Open = parse_time(x[1]),
Close = parse_time(x[2])
)
}
parse <- function(x) {
parse_interval(x)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.