I understand what you are saying. But would it understand the following. I have not ried this yet.
$time=mktime(12,0,0,1,1,date("2004"));
$endtime=mktime(10,0,0,2,1,date("2004"));
and so on
$time=mktime(12,0,0,1,1,date("2005"));
$endtime=mktime(10,0,0,2,1,date("2005"));