We have a bunch of events, each event has a date field, and a separate time field that has a start and end value. I'm trying to build a module pulls in the next event that hasn't ended yet. Also, if there are more than one events on that day, we need to pull all of them.
My main problem is figuring out how to construct the values that I need to query that time field with, it seems to be stored is a format that I'm not familiar with, e.g. the value 4:30PM is stored as 59400. I can't find any documentation that specifies how to convert that value back and forth.
Any Drupal gurus / php gurus out there know what that conversion is?