Home
last modified time | relevance | path

Searched refs:DateTime (Results 101 – 125 of 297) sorted by relevance

12345678910>>...12

/PHP-5.6/ext/date/tests/
H A Dbug50475.phpt2 Bug #50475 (DateTime::setISODate followed by DateTime::setTime)
7 $date = new DateTime('18-01-2009 00:00:00');
H A Dbug64157.phpt2 Test for bug #64157: DateTime::createFromFormat() reports confusing error message
9 DateTime::createFromFormat('s', '0');
10 $lastErrors = DateTime::getLastErrors();
H A Ddate_timezone_set_basic1.phpt5 /* 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 Ddate_modify_basic1.phpt5 /* 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 Ddate_time_set_basic1.phpt5 /* 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 Dbug49081.phpt2 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 DDateTime_clone_basic4.phpt2 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 Ddate_timezone_set_error.phpt5 /* 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 Dbug62852.phpt2 Bug #62852 (Unserialize invalid DateTime causes crash), variation 1
7 $s1 = 'O:8:"DateTime":3:{s:4:"date";s:20:"10007-06-07 03:51:49";s:13:"timezone_type";i:3;s:8:"timez…
14 Fatal error: Invalid serialization data for DateTime object in %sbug62852.php on line %d
H A Dbug68078.phpt7 $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 Dbug66721.phpt2 Test for bug #66721: __wakeup of DateTime segfaults when invalid object data is supplied
7 $y = 'O:8:"DateTime":3:{s:4:"date";s:19:"2014-02-15 02:00:51";s:13:"timezone_type";i:3;s:8:"timezon…
11 Fatal error: Invalid serialization data for DateTime object in %s on line %d
H A DDateTime_format_basic1.phpt2 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 Dbug68942_2.phpt2 Bug #68942 (Use after free vulnerability in unserialize() with DateTime).
5 $data = unserialize('a:2:{i:0;O:8:"DateTime":3:{s:4:"date";s:26:"2000-01-01 00:00:00.000000";s:13:"…
9 Fatal error: Invalid serialization data for DateTime object in %s%ebug68942_2.php on line %d
H A DDateTime_extends_basic1.phpt2 Test DateTime class inheritance
9 echo "*** Testing basic DateTime inheritance() ***\n";
12 class DateTimeExt extends DateTime
38 *** Testing basic DateTime inheritance() ***
H A Ddate_period.phpt6 $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 Dbug52577.phpt12 $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 Dbug68078_negative.phpt7 $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');
H A Ddate_timestamp_get.phpt2 DateTime: Test correct setup and correct DateTime parameter to date_timestamp_get()
10 $tz = date_timestamp_get(new DateTime());
H A DDateTime_compare_basic1.phpt2 Test of compare object handler for DateTime objects
6 echo "Simple test for DateTime compare object handler\n";
11 class DateTimeExt1 extends DateTime {
14 class DateTimeExt2 extends DateTime{
22 $obj1 = new DateTime("2009-02-12 12:47:41 GMT");
54 Simple test for DateTime compare object handler
H A Dbug51866.phpt19 $d = DateTime::createFromFormat($format, $str);
21 var_dump(DateTime::getLastErrors());
47 object(DateTime)#%d (3) {
73 object(DateTime)#%d (3) {
99 object(DateTime)#%d (3) {
142 object(DateTime)#%d (3) {
H A Ddate-lenient-create.phpt47 DateTime Object
68 DateTime Object
89 DateTime Object
110 DateTime Object
130 DateTime Object
H A Ddate_time_set_error.phpt5 /* 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
62 Warning: date_time_set() expects parameter 1 to be DateTime, object given in %s on line %d
65 Warning: date_time_set() expects parameter 1 to be DateTime, integer given in %s on line %d
68 Warning: date_time_set() expects parameter 1 to be DateTime, null given in %s on line %d
H A Dbug62852_var2.phpt2 Bug #62852 (Unserialize invalid DateTime causes crash), variation 2
11 class Foo extends DateTime {
25 Fatal error: Invalid serialization data for DateTime object in %sbug62852_var2.php on line %d
H A Dbug62852_var3.phpt2 Bug #62852 (Unserialize invalid DateTime causes crash), variation 3
11 class Foo extends DateTime {
25 Fatal error: Invalid serialization data for DateTime object in %sbug62852_var3.php on line %d
H A Dbug45543.phpt2 Test for bug #45543: DateTime::setTimezone can not set timezones without ID.
14 $d1 = new DateTime($test_date);
15 $d2 = new DateTime('2008-01-01 12:00:00 UTC');

Completed in 25 milliseconds

12345678910>>...12