Check against server time to display SQL entries – Radio Station DJ Rotator Plugin

Basically you have three parameters here:

  1. Current server time
  2. Schedule start time
  3. Schedule end time

Then your task boils down to using custom field parameters in query to request posts with two conditions:

  1. schedule start hour is smaller than current hour
  2. schedule end hour is larger than current hour