Searched refs:DateTime (Results 101 – 125 of 321) sorted by relevance
12345678910>>...13
/PHP-7.1/ext/date/tests/ |
H A D | date_diff1.phpt | 7 $start = new DateTime('2010-10-04 02:18:48 EDT'); 8 $end = new DateTime('2010-11-06 18:38:28 EDT'); 15 object(DateTime)#1 (3) { 23 object(DateTime)#2 (3) {
|
H A D | DateTime_format_variation1.phpt | 2 Test DateTime::format() function : usage variation - Passing unexpected values to first argument $f… 5 /* Prototype : public string DateTime::format ( string $format ) 11 echo "*** Testing DateTime::format() : usage variation - unexpected values to first argument \$for… 98 $object = new DateTime("2005-07-14 22:30:41"); 111 *** Testing DateTime::format() : usage variation - unexpected values to first argument $format*** 136 Warning: DateTime::format() expects parameter 1 to be string, array given in %s on line %d 141 Warning: DateTime::format() expects parameter 1 to be string, array given in %s on line %d 146 Warning: DateTime::format() expects parameter 1 to be string, array given in %s on line %d 151 Warning: DateTime::format() expects parameter 1 to be string, array given in %s on line %d 195 Warning: DateTime::format() expects parameter 1 to be string, object given in %s on line %d [all …]
|
H A D | date-set-timestamp.phpt | 2 DateTime::setTimestamp() 6 $d = new DateTime( '@1217184864' ); 9 $d = new DateTime();
|
H A D | bug50475.phpt | 2 Bug #50475 (DateTime::setISODate followed by DateTime::setTime) 7 $date = new DateTime('18-01-2009 00:00:00');
|
H A D | bug64157.phpt | 2 Test for bug #64157: DateTime::createFromFormat() reports confusing error message 9 DateTime::createFromFormat('s', '0'); 10 $lastErrors = DateTime::getLastErrors();
|
H A D | bug52062.phpt | 2 Bug #52062 (large timestamps with DateTime::getTimestamp and DateTime::setTimestamp) (32 bit) 11 $d = new DateTime('@100000000000'); 28 Warning: DateTime::setTimestamp() expects parameter 1 to be integer, float given in %s on line %d
|
H A D | bug62852_var2.phpt | 2 Bug #62852 (Unserialize invalid DateTime causes crash), variation 2 11 class Foo extends DateTime { 24 Fatal error: Uncaught Error: Invalid serialization data for DateTime object in %sbug62852_var2.php:… 26 #0 %sbug62852_var2.php(%d): DateTime->__wakeup()
|
H A D | bug62852_var3.phpt | 2 Bug #62852 (Unserialize invalid DateTime causes crash), variation 3 11 class Foo extends DateTime { 24 Fatal error: Uncaught Error: Invalid serialization data for DateTime object in %sbug62852_var3.php:… 26 #0 %sbug62852_var3.php(%d): DateTime->__wakeup()
|
H A D | date_timezone_set_basic1.phpt | 5 /* Prototype : DateTime date_timezone_set ( DateTime $object , DateTimeZone $timezone ) 6 * Description: Sets the time zone for the DateTime object 8 * Alias to functions: DateTime::setTimezone
|
H A D | bug69089.phpt | 2 Bug #69089 (Add support for RFC3339 extended to DateTime::format) 9 $date = new DateTime('2009-09-28 09:45:31.918312'); 11 var_dump($date->format(DateTime::RFC3339_EXTENDED));
|
H A D | date_modify_basic1.phpt | 5 /* Prototype : DateTime date_modify ( DateTime $object , string $modify ) 6 …* Description: Alter the timestamp of a DateTime object by incrementing or decrementing in a forma… 8 * Alias to functions: public DateTime DateTime::modify()
|
H A D | date_time_set_basic1.phpt | 5 /* Prototype : DateTime date_time_set ( DateTime $object , int $hour , int $minute [, int $sec… 6 * Description: Resets the current time of the DateTime object to a different time. 8 * Alias to functions: DateTime::setTime 16 // Create a DateTime object
|
H A D | DateTime_clone_basic4.phpt | 2 Test clone of DateTime derived objects with __clone magic method 11 class DateTimeExt1 extends DateTime { 17 echo "*** Testing clone of objects derived from DateTime class with __clone magic method***\n"; 28 *** Testing clone of objects derived from DateTime class with __clone magic method***
|
H A D | bug68078.phpt | 7 $date1 = DateTime::createFromFormat('U.u', '1448889063.3531'); 8 $date2 = DateTime::createFromFormat('U.u', '1448889063.5216'); 9 $date3 = DateTime::createFromFormat('U.u', '1448889063.5216');
|
H A D | bug49081.phpt | 2 Bug #49081 (DateTime::diff() mistake if start in January and interval > 28 days) 6 $d1 = new DateTime('2010-01-01 06:00:00'); 7 $d2 = new DateTime('2010-01-31 10:00:00');
|
H A D | date_timezone_set_error.phpt | 5 /* Prototype : DateTime date_timezone_set ( DateTime $object , DateTimeZone $timezone ) 6 * Description: Sets the time zone for the DateTime object 8 * Alias to functions: DateTime::setTimezone 56 Warning: date_timezone_set() expects parameter 1 to be DateTime, object given in %s on line %d 59 Warning: date_timezone_set() expects parameter 1 to be DateTime, integer given in %s on line %d 62 Warning: date_timezone_set() expects parameter 1 to be DateTime, null given in %s on line %d
|
H A D | date_time_fractions_create_from_format.phpt | 2 Fractions with DateTime objects (create_from_format) 14 object(DateTime)#%d (%d) { 22 object(DateTime)#%d (%d) {
|
H A D | date_time_fractions_serialize.phpt | 2 Fractions with DateTime objects (Serialization) 17 O:8:"DateTime":3:{s:4:"date";s:26:"2016-10-03 12:47:18.819313";s:13:"timezone_type";i:3;s:8:"timezo… 18 object(DateTime)#2 (%d) {
|
H A D | DateTime_format_basic1.phpt | 2 Test DateTime::format() function : basic functionality 5 /* Prototype : public string DateTime::format ( string $format ) 14 echo "*** Testing DateTime::format() : basic functionality ***\n"; 15 $date = new DateTime("2005-07-14 22:30:41"); 30 *** Testing DateTime::format() : basic functionality ***
|
H A D | date_period.phpt | 6 $db = new DateTime( '2008-01-01' ); 7 $de = new DateTime( '2008-12-31' ); 17 $db = new DateTime( '2007-12-31' ); 18 $de = new DateTime( '2009-12-31 23:59:59' );
|
H A D | DateTime_extends_basic1.phpt | 2 Test DateTime class inheritance 9 echo "*** Testing basic DateTime inheritance() ***\n"; 12 class DateTimeExt extends DateTime 38 *** Testing basic DateTime inheritance() ***
|
H A D | bug68669.phpt | 2 DateTime::createFromFormat() does not allow NULL $timezone 7 var_dump(DateTime::createFromFormat('Y/m/d H:i:s', '1995/06/08 12:34:56', null)); 10 object(DateTime)#1 (3) {
|
H A D | bug52577.phpt | 12 $date = new DateTime('@'.$unixtime); 13 echo "DateTime(PHP Class): ".$date->format($date_format); 19 DateTime(PHP Class): Fri, 06 Aug 2010 21:00:00 +0000
|
H A D | bug68078_negative.phpt | 7 $earlyDate1 = DateTime::createFromFormat('U.u', '1.8642')->modify('-5 seconds'); 8 $earlyDate2 = DateTime::createFromFormat('U.u', '1.2768')->modify('-5 seconds'); 9 $earlyDate3 = DateTime::createFromFormat('U.u', '1.2768')->modify('-5 seconds');
|
/PHP-7.1/ext/intl/tests/ |
H A D | dateformat_format.phpt | 320 Date is: DateTime::__set_state(array( 328 Date is: DateTime::__set_state(array( 336 Date is: DateTime::__set_state(array( 344 Date is: DateTime::__set_state(array( 350 Formatted DateTime is : 12/31/09 3:02 PM 352 Date is: DateTime::__set_state(array( 360 Date is: DateTime::__set_state(array( 368 Date is: DateTime::__set_state(array( 376 Date is: DateTime::__set_state(array( 384 Date is: DateTime::__set_state(array( [all …]
|
Completed in 31 milliseconds
12345678910>>...13