Let us say our site is about a birthday on 25th September, 2008. We need to specify that as the ‘target’ date as follows:
$target = mktime (0, 0, 0, 9, 25, 2008);
We have left out the DST reference for simplicities sake. Note that the year is a four-digit representation – any two-digit input for year will be interpreted as 2000 onwards from 00 to 69 and 1900 onwards from 70 to 99, hence the advice that four digit years are input.
If we wanted to countdown to a party at a particular hour on that day – say 20:00 hours, or 8pm – we would phrase it as follows:
$target = mktime (20, 0, 0, 9, 25, 2008);
Any minutes or seconds that need to be included represent those after the hour prescribed.
However, for our example we will keep it simple, and aim for the beginning of the day.