Lines Matching refs:DateTime
2 Test DateTime::setTimezone () function : error conditions
5 /* Prototype : public DateTime DateTime::setTimezone ( DateTimeZone $timezone )
6 * Description: Sets the time zone for the DateTime object
13 echo "*** Testing DateTime::setTimezone () : error conditions ***\n";
15 $datetime = new DateTime("2009-01-30 17:57:32");
17 echo "\n-- Testing DateTime::setTimezone () function with zero arguments --\n";
20 echo "\n-- Testing DateTime::setTimezone () function with more than expected no. of arguments --\n";
28 *** Testing DateTime::setTimezone () : error conditions ***
30 -- Testing DateTime::setTimezone () function with zero arguments --
32 Warning: DateTime::setTimezone() expects exactly 1 parameter, 0 given in %s on line %d
35 -- Testing DateTime::setTimezone () function with more than expected no. of arguments --
37 Warning: DateTime::setTimezone() expects exactly 1 parameter, 2 given in %s on line %d