Lines Matching refs:DateTime
2 Test DateTime::setTime() function : error conditions
5 /* Prototype : public DateTime DateTime::setTime ( int $hour , int $minute [, int $second ] )
6 * Description: Resets the current time of the DateTime object to a different time.
13 echo "*** Testing DateTime::setTime() : error conditions ***\n";
17 echo "\n-- Testing DateTime::setTime() function with zero arguments --\n";
20 echo "\n-- Testing DateTime::setTime() function with less than expected no. of arguments --\n";
24 echo "\n-- Testing DateTime::setTime() function with more than expected no. of arguments --\n";
34 *** Testing DateTime::setTime() : error conditions ***
36 -- Testing DateTime::setTime() function with zero arguments --
38 Warning: DateTime::setTime() expects at least 2 parameters, 0 given in %s on line %d
41 -- Testing DateTime::setTime() function with less than expected no. of arguments --
43 Warning: DateTime::setTime() expects at least 2 parameters, 1 given in %s on line %d
46 -- Testing DateTime::setTime() function with more than expected no. of arguments --
48 Warning: DateTime::setTime() expects at most 4 parameters, 5 given in %s on line %d