Lines Matching refs:DateTime
2 Test new DateTime() function : usage variation - Passing unexpected values to first argument $time.
5 /* Prototype : DateTime::__construct ([ string $time="now" [, DateTimeZone $timezone=NULL ]] )
6 * Description: Returns new DateTime object
11 echo "*** Testing new DateTime(): usage variation - unexpected values to first argument \$time***\…
104 var_dump( new DateTime($time) );
111 var_dump( new DateTime($time, $timezone) );
124 *** Testing new DateTime(): usage variation - unexpected values to first argument $time***
127 FAILED: DateTime::__construct(): Failed to parse time string (0) at position 0 (0): Unexpected char…
128 FAILED: DateTime::__construct(): Failed to parse time string (0) at position 0 (0): Unexpected char…
131 FAILED: DateTime::__construct(): Failed to parse time string (1) at position 0 (1): Unexpected char…
132 FAILED: DateTime::__construct(): Failed to parse time string (1) at position 0 (1): Unexpected char…
135 FAILED: DateTime::__construct(): Failed to parse time string (12345) at position 4 (5): Unexpected …
136 FAILED: DateTime::__construct(): Failed to parse time string (12345) at position 4 (5): Unexpected …
139 FAILED: DateTime::__construct(): Failed to parse time string (-12345) at position 5 (5): Unexpected…
140 FAILED: DateTime::__construct(): Failed to parse time string (-12345) at position 5 (5): Unexpected…
143 object(DateTime)#%d (3) {
151 object(DateTime)#%d (3) {
161 FAILED: DateTime::__construct(): Failed to parse time string (-10.5) at position 4 (5): Unexpected …
162 FAILED: DateTime::__construct(): Failed to parse time string (-10.5) at position 4 (5): Unexpected …
165 object(DateTime)#%d (3) {
173 object(DateTime)#%d (3) {
183 FAILED: DateTime::__construct() expects parameter 1 to be string, array given
184 FAILED: DateTime::__construct() expects parameter 1 to be string, array given
187 FAILED: DateTime::__construct() expects parameter 1 to be string, array given
188 FAILED: DateTime::__construct() expects parameter 1 to be string, array given
191 FAILED: DateTime::__construct() expects parameter 1 to be string, array given
192 FAILED: DateTime::__construct() expects parameter 1 to be string, array given
195 FAILED: DateTime::__construct() expects parameter 1 to be string, array given
196 FAILED: DateTime::__construct() expects parameter 1 to be string, array given
199 object(DateTime)#%d (3) {
207 object(DateTime)#%d (3) {
217 object(DateTime)#%d (3) {
225 object(DateTime)#%d (3) {
235 FAILED: DateTime::__construct(): Failed to parse time string (1) at position 0 (1): Unexpected char…
236 FAILED: DateTime::__construct(): Failed to parse time string (1) at position 0 (1): Unexpected char…
239 object(DateTime)#%d (3) {
247 object(DateTime)#%d (3) {
257 FAILED: DateTime::__construct(): Failed to parse time string (1) at position 0 (1): Unexpected char…
258 FAILED: DateTime::__construct(): Failed to parse time string (1) at position 0 (1): Unexpected char…
261 object(DateTime)#%d (3) {
269 object(DateTime)#%d (3) {
279 object(DateTime)#%d (3) {
287 object(DateTime)#%d (3) {
297 object(DateTime)#%d (3) {
305 object(DateTime)#%d (3) {
315 FAILED: DateTime::__construct(): Failed to parse time string (string) at position 0 (s): The timezo…
316 FAILED: DateTime::__construct(): Failed to parse time string (string) at position 0 (s): The timezo…
319 FAILED: DateTime::__construct(): Failed to parse time string (string) at position 0 (s): The timezo…
320 FAILED: DateTime::__construct(): Failed to parse time string (string) at position 0 (s): The timezo…
323 FAILED: DateTime::__construct(): Failed to parse time string (sTrInG) at position 0 (s): The timezo…
324 FAILED: DateTime::__construct(): Failed to parse time string (sTrInG) at position 0 (s): The timezo…
327 FAILED: DateTime::__construct(): Failed to parse time string (hello world) at position 0 (h): The t…
328 FAILED: DateTime::__construct(): Failed to parse time string (hello world) at position 0 (h): The t…
331 FAILED: DateTime::__construct(): Failed to parse time string (Class A object) at position 0 (C): Th…
332 FAILED: DateTime::__construct(): Failed to parse time string (Class A object) at position 0 (C): Th…
335 FAILED: DateTime::__construct() expects parameter 1 to be string, object given
336 FAILED: DateTime::__construct() expects parameter 1 to be string, object given
339 object(DateTime)#%d (3) {
347 object(DateTime)#%d (3) {
357 object(DateTime)#%d (3) {
365 object(DateTime)#%d (3) {
375 FAILED: DateTime::__construct() expects parameter 1 to be string, resource given
376 FAILED: DateTime::__construct() expects parameter 1 to be string, resource given