I'm trying to generate some reports that show events that occur between 12:00:00 am Sunday morning and 11:59:59 Saturday night. My problem is calculating the unix timestamp range. Can anyone offer a genius idea? I'm at a mental block.
To assist the user in choosing the date range, I'd like PHP to generate a HTML select form field that has options like this...
10/19/2008 - 10/25/2008 (value = 1224374400,1224979199 )
10/26/2008 - 11/01/2008 (value = 1224979200,1225583999 )
...
What's the best way to calculate Sunday morning/Saturday night timestamps in a 52 step loop for a year?
To assist the user in choosing the date range, I'd like PHP to generate a HTML select form field that has options like this...
10/19/2008 - 10/25/2008 (value = 1224374400,1224979199 )
10/26/2008 - 11/01/2008 (value = 1224979200,1225583999 )
...
What's the best way to calculate Sunday morning/Saturday night timestamps in a 52 step loop for a year?