I currently have 2 timestamp fields in my RubyOnRails database defined as:
starttime:timestamp
endtime:timestamp
I want to write a simple function in my controller which will take the current time and return TRUE if it lies in the range of the starttime & endtime.
How I can do this?