Home
last modified time | relevance | path

Searched refs:DateTimeZone (Results 1 – 25 of 112) sorted by relevance

12345

/PHP-8.0/ext/date/tests/
H A Dbug66985.phpt21 DateTimeZone Object
26 DateTimeZone Object
31 DateTimeZone Object
36 DateTimeZone Object
41 DateTimeZone Object
46 DateTimeZone Object
51 DateTimeZone Object
56 DateTimeZone Object
61 DateTimeZone Object
66 DateTimeZone Object
[all …]
H A DDateTimeZone_construct_basic.phpt2 Test new DateTimeZone() : basic functionality
8 echo "*** Testing new DateTimeZone() : basic functionality ***\n";
10 var_dump( new DateTimeZone("GMT") );
11 var_dump( new DateTimeZone("Europe/London") );
12 var_dump( new DateTimeZone("America/Los_Angeles") );
16 *** Testing new DateTimeZone() : basic functionality ***
17 object(DateTimeZone)#%d (2) {
23 object(DateTimeZone)#%d (2) {
29 object(DateTimeZone)#%d (2) {
H A DDateTimeZone_construct_error.phpt2 Test new DateTimeZone() : error conditions
8 echo "*** Testing DateTimeZone() : error conditions ***\n";
10 echo "\n-- Testing new DateTimeZone() with more than expected no. of arguments --\n";
14 new DateTimeZone($timezone, $extra_arg);
21 *** Testing DateTimeZone() : error conditions ***
23 -- Testing new DateTimeZone() with more than expected no. of arguments --
24 DateTimeZone::__construct() expects exactly 1 argument, 2 given
H A Dbug-gh9763.phpt2 Test bug GH-9763: DateTimeZone ctr mishandles input and adds null byte if the argument is an offset…
11 $d = new DateTimeZone($test);
21 Testing +99:60: DateTimeZone::__construct(): Timezone offset is out of range (+99:60)
22 Testing +99:62: DateTimeZone::__construct(): Timezone offset is out of range (+99:62)
23 Testing -99:62: DateTimeZone::__construct(): Timezone offset is out of range (-99:62)
24 Testing -99:60: DateTimeZone::__construct(): Timezone offset is out of range (-99:60)
25 Testing +9960: DateTimeZone::__construct(): Timezone offset is out of range (+9960)
26 Testing -9960: DateTimeZone::__construct(): Timezone offset is out of range (-9960)
H A DDateTimeZone_getName_basic1.phpt2 Test DateTimeZone::getName() function : basic functionality
5 echo "*** Testing DateTimeZone::getName() : basic functionality ***\n";
10 $tz1 = new DateTimeZone("Europe/London");
13 $tz2 = new DateTimeZone("America/New_York");
16 $tz3 = new DateTimeZone("America/Los_Angeles");
21 *** Testing DateTimeZone::getName() : basic functionality ***
H A DDateTimeZone_getOffset_basic1.phpt2 Test DateTimeZone::getOffset() function : basic functionality
5 echo "*** Testing DateTimeZone::getOffset() : basic functionality ***\n";
10 $tz1 = new DateTimeZone("Europe/London");
14 $tz2 = new DateTimeZone("America/New_York");
17 $tz3 = new DateTimeZone("America/Los_Angeles");
22 *** Testing DateTimeZone::getOffset() : basic functionality ***
H A Dbug73489.phpt6 $datetime = new DateTime('2016-11-09 20:00:00', new DateTimeZone('UTC'));
8 $datetime->setTimeZone(new DateTimeZone('-03:00'));
9 $datetime->setTimeZone(new DateTimeZone('-03:00'));
13 $datetime = new DateTime('2016-11-09 20:00:00', new DateTimeZone('UTC'));
15 $datetime->setTimeZone(new DateTimeZone('-03:00'));
17 $datetime->setTimeZone(new DateTimeZone('-03:00'));
H A Dbug68406.phpt2 Bug #68406 calling var_dump on a DateTimeZone object modifies it
8 $tz1 = new DateTimeZone('Europe/Berlin');
9 $tz2 = new DateTimeZone('Europe/Berlin');
22 object(DateTimeZone)#4 (2) {
28 object(DateTimeZone)#2 (2) {
H A DDateTimeZone_compare_basic1.phpt2 Test of compare object handler for DateTimeZone objects
17 var_dump(new DateTimeZone('Europe/Berlin') == new DateTimeZone('CET'));
21 $tz1 = new DateTimeZone($timezone1);
22 $tz2 = new DateTimeZone($timezone2);
32 // Test comparison of uninitialized DateTimeZone objects.
33 class MyDateTimeZone extends DateTimeZone {
74 Warning: main(): Trying to compare different kinds of DateTimeZone objects in %s on line %d
76 Trying to compare uninitialized DateTimeZone objects
H A DDateTimeZone_serialize_type_2.phpt2 Test serialization of DateTimeZone objects
8 $tz1 = new DateTimeZone("EST");
20 object(DateTimeZone)#%d (2) {
26 string(74) "O:12:"DateTimeZone":2:{s:13:"timezone_type";i:2;s:8:"timezone";s:3:"EST";}"
27 object(DateTimeZone)#%d (2) {
H A DDateTimeZone_serialize_type_3.phpt2 Test serialization of DateTimeZone objects
8 $tz1 = new DateTimeZone("America/New_York");
20 object(DateTimeZone)#1 (2) {
26 string(88) "O:12:"DateTimeZone":2:{s:13:"timezone_type";i:3;s:8:"timezone";s:16:"America/New_York";…
27 object(DateTimeZone)#2 (2) {
H A DDateTimeZone_clone_basic3.phpt10 echo "\n-- Create a DateTimeZone object --\n";
11 $d1 = new DateTimeZone("Europe/London");
31 -- Create a DateTimeZone object --
32 object(DateTimeZone)#%d (2) {
40 object(DateTimeZone)#%d (4) {
52 object(DateTimeZone)#%d (4) {
64 object(DateTimeZone)#%d (6) {
80 object(DateTimeZone)#%d (6) {
H A Dtimezone_identifiers_list_wrong_constructor.phpt2 timezone_identifiers_list: ValueError when timezoneGroup is DateTimeZone::PER_COUNTRY
11 var_dump(timezone_identifiers_list(DateTimeZone::PER_COUNTRY));
16 var_dump(timezone_identifiers_list(DateTimeZone::PER_COUNTRY, 'A'));
23 …r ISO 3166-1 compatible country code when argument #1 ($timezoneGroup) is DateTimeZone::PER_COUNTRY
24 …r ISO 3166-1 compatible country code when argument #1 ($timezoneGroup) is DateTimeZone::PER_COUNTRY
H A Dbug75928.phpt2 Bug #75928: Argument 2 for `DateTimeZone::listIdentifiers()` should accept `null`
6 var_dump(is_array(DateTimeZone::listIdentifiers(\DateTimeZone::ALL, null)));
H A DDateTimeZone_getTransitions_basic1.phpt2 Test DateTimeZone::getTransitions() function : basic functionality
5 echo "*** Testing DateTimeZone::getTransitions() : basic functionality ***\n";
10 // Create a DateTimeZone object
11 $tz = new DateTimeZone("Europe/London");
26 *** Testing DateTimeZone::getTransitions() : basic functionality ***
H A DDateTimeZone_clone_basic1.phpt2 Test clone on DateTimeZone objects
11 // Create a DateTimeZone object..
12 $orig = new DateTimeZone("GMT");
31 object(DateTimeZone)#%d (2) {
37 object(DateTimeZone)#%d (2) {
H A DDateTimeZone_serialize_type_1.phpt2 Test serialization of DateTimeZone objects
20 object(DateTimeZone)#%d (2) {
26 string(77) "O:12:"DateTimeZone":2:{s:13:"timezone_type";i:1;s:8:"timezone";s:6:"+01:00";}"
27 object(DateTimeZone)#%d (2) {
H A DDateTimeZone_extends_basic1.phpt2 Test DateTimeZone class inheritance
9 echo "*** Testing basic DateTimeZone inheritance() ***\n";
11 class DateTimeZoneExt extends DateTimeZone
27 *** Testing basic DateTimeZone inheritance() ***
H A Dbug78139.phpt22 $tz = new \DateTimeZone($string);
32 object(DateTimeZone)#1 (2) {
44 DateTimeZone::__construct(): Unknown or bad timezone (x UTC)
51 DateTimeZone::__construct(): Unknown or bad timezone (xx UTC)
58 DateTimeZone::__construct(): Unknown or bad timezone (xUTC)
65 DateTimeZone::__construct(): Unknown or bad timezone (UTCx)
72 DateTimeZone::__construct(): Unknown or bad timezone (UTC xx)
H A DDateTime_data-fall-type3-type3.inc35 $end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3
41 $end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3
67 $end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3
73 $end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3
90 $start->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3
101 $end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3
108 $end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3
139 $end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3
146 $end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3
175 $end->setTimezone(new DateTimeZone('America/New_York')); // zt2 -> zt3
[all …]
H A DDateTimeZone_listIdentifiers_basic1.phpt2 Test DateTimeZone::listIdentifiers function : basic functionality
5 echo "*** Testing DateTimeZone::listIdentifiers() : basic functionality ***\n";
10 $zones = DateTimeZone::listIdentifiers();
21 *** Testing DateTimeZone::listIdentifiers() : basic functionality ***
H A DDateTimeZone_clone_basic4.phpt2 Test clone of DateTimeZone derived objects with __clone magic method
8 class DateTimeZoneExt1 extends DateTimeZone {
14 echo "*** Testing clone of objects derived from DateTimeZone class with __clone magic method***\n";
24 *** Testing clone of objects derived from DateTimeZone class with __clone magic method***
H A D68062.phpt2 DateTimeZone::getOffset() accepts a DateTimeInterface object
6 $tz = new DateTimeZone('Europe/London');
18 DateTimeZone::getOffset(): Argument #1 ($datetime) must be of type DateTimeInterface, int given
/PHP-8.0/ext/date/
H A Dphp_date.stub.php58 function date_timezone_get(DateTimeInterface $object): DateTimeZone|false {}
78 function timezone_open(string $timezone): DateTimeZone|false {}
80 function timezone_name_get(DateTimeZone $object): string {}
89 function timezone_location_get(DateTimeZone $object): array|false {}
125 /** @return DateTimeZone|false */
193 * @return DateTimeZone|false
202 public function setTimezone(DateTimeZone $timezone) {}
276 * @return DateTimeZone|false
309 public function setTimezone(DateTimeZone $timezone) {}
329 class DateTimeZone class
[all …]
/PHP-8.0/ext/intl/tests/
H A Dcalendar_toDateTime_error.phpt45 Warning: IntlCalendar::toDateTime(): intlcal_to_date_time: DateTimeZone constructor threw exception…
46 string(77) "exception: DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)"
48 Warning: intlcal_to_date_time(): intlcal_to_date_time: DateTimeZone constructor threw exception in …
49 string(66) "DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)"
51 Warning: IntlCalendar::toDateTime(): intlcal_to_date_time: DateTimeZone constructor threw exception…
52 string(66) "DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)"
54 Warning: intlcal_to_date_time(): intlcal_to_date_time: DateTimeZone constructor threw exception in …
55 string(66) "DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)"

Completed in 31 milliseconds

12345