Skip to content

A Java application to parse opening hours in a string format such as "Mon-Fri 08:00-20:00, Sat-Sun 10:00-18:00".

License

Notifications You must be signed in to change notification settings

ZeroOne3010/opening-hours-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Opening Hours Parser

A Java 8 library to parse opening hours, given in a string format, into proper Java objects. Times and days are represented using the java.time.LocalTime and java.time.DayOfWeek classes.

For example, the string Mon-Wed 10:00-18:00, Thu-Sun 12:00-20:00 would be parsed into a WeeklySchedule object from whom one could query the schedule for any day of week: weeklySchedule.get(DayOfWeek.TUESDAY) would return a DailySchedule object with opening time 10:00 and closing time 18:00.

About

A Java application to parse opening hours in a string format such as "Mon-Fri 08:00-20:00, Sat-Sun 10:00-18:00".

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages