Lines Matching refs:DateTime
2 Test DateTime::modify() function : error conditions
5 /* Prototype : public DateTime DateTime::modify ( string $modify )
6 …* Description: Alter the timestamp of a DateTime object by incrementing or decrementing in a forma…
14 echo "*** Testing DateTime::modify() : error conditions ***\n";
17 $object = new DateTime("2009-01-30 19:34:10");
19 echo "\n-- Testing DateTime::modify() function with less than expected no. of arguments --\n";
22 echo "\n-- Testing DateTime::modify() function with more than expected no. of arguments --\n";
30 *** Testing DateTime::modify() : error conditions ***
32 -- Testing DateTime::modify() function with less than expected no. of arguments --
34 Warning: DateTime::modify() expects exactly 1 parameter, 0 given in %s on line %d
37 -- Testing DateTime::modify() function with more than expected no. of arguments --
39 Warning: DateTime::modify() expects exactly 1 parameter, 2 given in %s on line %d