Skip to content

Library Hours

luisgreg99 edited this page May 15, 2018 · 2 revisions

Special Formatting used for Library Hours:

No closing

Set open time to expected open time and close time to 12:15am

Example:

Open time: 7:30am, Close time: 12:15am => 7:30AM – no closing

Closes at

Set open time to 12:15am and close time to expected close time

Example:

Open time: 12:15am, Close time: 10:00pm => Closes at 10:00PM

Open 24 Hours

Set open and close time to 12:00am

Example:

Open time: 12:00am, Close time: 12:00am => Open 24 hours

Closed

Set open and close time to 1:00am

Example:

Open time: 1:00am, Close time: 1:00am => Closed

Current logic for developers:

https://github.com/osulp/kiosks/blob/master/lib/api/v1/custom_hours_format.rb