I am trying to figure out the difference between two times within a current timezone. I’m trying to figure out whether to call a support telephone number between two times. I.e., I am using the active_support gem and I want to do something like
t= current timeo= open time according to current date (9AM)c= close time according to current date (5PM)call_open= are we open?
Would someone be able to help?
I believe you could do
call_open = t.between?(o, c)