1date_default_timezone_set('America/Los_Angeles'); // or wherever you are
2
3$time = time();
4
5if ($time >= strtotime("Second Sunday March 0") && $time < strtotime("First Sunday November 0"))
6{
7
8 echo date('m/d/y h:i a', $time);
9
10} else {
11
12 echo date('m/d/y h:i a', $time);
13
14}