Im Not Very Good With Math, As Some Of You Can Figure Out By All My Questions...
I Need A Clock That Will Count Down To A Time Everyday.
The Time: 12:10:00 AM EST
The Format: ##h ##m ##s
I Had This Working Before, But Im Not Good With Time, Well, The Math In It Anyways.
Date Format: g:i:s
Time Of The Day: 12:10:00 AM (10 Mins After Midnight)
It Needs To Do It Every Night.
It Needs To Count Down All Day.
If This Isnt Possible, Let Me Know.
I Was Thinking Maybe Going Cheap And Doing This:
$hour = date(g);
$min = date(i);
$second = date(s);
$AM_PM = date(A);
if($AM_PM == "AM")
{
$hour = ($hour*120);
}
else if($AM_PM == "PM")
{
$hour = ($hour*60);
}
$time = ($hour/60);
$time = number_format($time, 2);
echo "$time Hours Until Reset.";