I have time interval strings like 6:30 am – 2:30 pm or 5:30–11:00 pm (notice the omitted "pm" for the start time here) that I want to parse into Time objects in Ruby. Is there an elegant way to do that or do I have to catch all different cases manually?
http://chronic.rubyforge.org? ;-)
Perhaps using a time library like Chronic could help you?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With