I've got an application that requires the time until an event (in seconds) to display a countdown timer. The countdown timer should be counting down 20 minutes at a time. However, I need to use php to find the seconds to the next third of an hour (12:00, 12:20, 12:40, etc) and I've got no idea where to go with the logic on this.
Anyone have suggestions?