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";
33 *** Testing DateTime::setTime() : error conditions ***
35 -- Testing DateTime::setTime() function with zero arguments --
37 Warning: DateTime::setTime() expects at least 2 parameters, 0 given in %s on line %d
40 -- Testing DateTime::setTime() function with less than expected no. of arguments --
42 Warning: DateTime::setTime() expects at least 2 parameters, 1 given in %s on line %d
45 -- Testing DateTime::setTime() function with more than expected no. of arguments --
47 Warning: DateTime::setTime() expects at most 3 parameters, 4 given in %s on line %d