Tag Archives: strtotime

Calculating Daylight Savings Time Boundary In PHP

I had an issue recently where I needed to calculate the Unix timestamp for the daylight savings time boundaries. According to the United States Naval Observatory, daylight savings time begins the Second Sunday of March and ends on the First Sunday of November.
Awkward date calculations if you don’t have the magical strtotime() function in PHP. [...]