Low commit activity in last 3 years
There's a lot of open issues
A long-lived project that still receives updates
Datetime range to opening hours, opening hours to datetime range. Very strongly inspired by YoHours.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

>= 0
 Project Readme

Opening Hours Converter

OpenStreetMap Opening Hours to Date & Date to Opening Hours

See Wiki for OpenStreetMap Opening Hours specification.

Installation

gem install opening_hours_converter

Usage

require 'opening_hours_converter'

parsed_oh = OpeningHoursConverter::OpeningHoursParser.new.parse('Mo 10:00-12:00')
oh_string = OpeningHoursConverter::OpeningHoursBuilder.new.build(parsed_oh)

Test

Install the dependencies with:

bundle install

Then run all the tests with:

rspec spec --format=documentation

Credits

Done with YoHours as inspiration and with constant help from the Evaluation tool/repository.