Lines Matching refs:day
6 // <day> is equivalent to 1 <day> and will *not* forward if the current day
7 // (November 1st) is the same day of week.
8 $day = strtotime( "Thursday Nov 2007" );
9 echo date( DateTime::ISO8601, $day ), "\n";
10 $day = strtotime( "1 Thursday Nov 2007" );
11 echo date( DateTime::ISO8601, $day ), "\n";
12 $day = strtotime( "2 Thursday Nov 2007" );
13 echo date( DateTime::ISO8601, $day ), "\n";
14 $day = strtotime( "3 Thursday Nov 2007" );
15 echo date( DateTime::ISO8601, $day ), "\n\n";
18 $day = strtotime( "Thursday Nov 2007" );
19 echo date( DateTime::ISO8601, $day ), "\n";
20 $day = strtotime( "+1 week Thursday Nov 2007" );
21 echo date( DateTime::ISO8601, $day ), "\n";
22 $day = strtotime( "+2 week Thursday Nov 2007" );
23 echo date( DateTime::ISO8601, $day ), "\n";
24 $day = strtotime( "+3 week Thursday Nov 2007" );
25 echo date( DateTime::ISO8601, $day ), "\n\n";
27 // First, second, etc skip to the first/second weekday *after* the current day.
29 // if the current day-of-week is the one mentioned in the phrase.
30 $day = strtotime( "Thursday Nov 2007" );
31 echo date( DateTime::ISO8601, $day ), "\n";
32 $day = strtotime( "first Thursday Nov 2007" );
33 echo date( DateTime::ISO8601, $day ), "\n";
34 $day = strtotime( "second Thursday Nov 2007" );
35 echo date( DateTime::ISO8601, $day ), "\n";
36 $day = strtotime( "third Thursday Nov 2007" );
37 echo date( DateTime::ISO8601, $day ), "\n\n";
39 // Now the same where the current day-of-week does not match the one in the
41 $day = strtotime( "Friday Nov 2007" );
42 echo date( DateTime::ISO8601, $day ), "\n";
43 $day = strtotime( "first Friday Nov 2007" );
44 echo date( DateTime::ISO8601, $day ), "\n";
45 $day = strtotime( "second Friday Nov 2007" );
46 echo date( DateTime::ISO8601, $day ), "\n";
47 $day = strtotime( "third Friday Nov 2007" );
48 echo date( DateTime::ISO8601, $day ), "\n\n";