OpenStreetMap Opening Hours to Date & Date to Opening Hours
See Wiki for OpenStreetMap Opening Hours specification.
gem install opening_hours_converter
require 'opening_hours_converter'
parsed_oh = OpeningHoursConverter::OpeningHoursParser.new.parse('Mo 10:00-12:00')
oh_string = OpeningHoursConverter::OpeningHoursBuilder.new.build(parsed_oh)
Install the dependencies with:
bundle install
Then run all the tests with:
rspec spec --format=documentation
Done with YoHours as inspiration and with constant help from the Evaluation tool/repository.