KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to write a method that will check if Time.now is in between the open hours and the close hours of a shop. The open and close hours are saved as a Time object but I can't compare it corectly because the shop saved its hours at 2012/2/2 so the open hours will be something like: 2012-02-02 02:30:00 UTC and Time.now will be: 07:23 +0200 How can I compare just the time part without the date part?
Tags (comma-separated)
Save Edits
Cancel