Is there a RubyGem for parsing store hours?

255 views Asked by At

Are there any ruby gems to parse and standardize store hours? I've seen Chronic, but I don't think it'll work for this specific use case.

For example, how would you parse Mon-Sun 11am-10pm or Hours today: 5:30 AM – 10:00 PM? Do you have to create rules specific to each context? Is there a library that does this already?

1

There are 1 answers

0
paniwani On BEST ANSWER

Chronic Duration solves the problem of parsing duration time strings.