Home
last modified time | relevance | path

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

1234567

/php-src/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 Dgh11281.phpt2 GH-11281 (DateTimeZone::getName() does not include seconds in offset)
5 $tz = new DateTimeZone('+03:00');
7 $tz = new DateTimeZone('+03:00:00');
9 $tz = new DateTimeZone('-03:00:00');
11 $tz = new DateTimeZone('+03:00:01');
13 $tz = new DateTimeZone('-03:00:01');
15 $tz = new DateTimeZone('+03:00:58');
17 $tz = new DateTimeZone('-03:00:58');
19 $tz = new DateTimeZone('+03:00:59');
21 $tz = new DateTimeZone('-03:00:59');
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_set_state_exception.phpt2 DateTimeZone invalid serialization data
21 $d = DateTimeZone::__set_state( $propertySet );
31 Error: Invalid serialization data for DateTimeZone object
32 Error: Invalid serialization data for DateTimeZone object
33 Error: Invalid serialization data for DateTimeZone object
34 Error: Invalid serialization data for DateTimeZone object
35 Error: Invalid serialization data for DateTimeZone object
36 Error: Invalid serialization data for DateTimeZone object
37 Error: Invalid serialization data for DateTimeZone object
38 Error: Invalid serialization data for DateTimeZone object
H A DDateTimeZone_compare.phpt2 DateTimeZone compare handler
5 class MyDateTimeZone extends DateTimeZone
13 $dtzID = new DateTimeZone("Europe/Kyiv");
14 $dtzAbbr = new DateTimeZone("CEST");
15 $dtzUTC = new DateTimeZone("-5:00");
43 DateObjectError: Trying to compare uninitialized DateTimeZone objects
44 DateObjectError: Trying to compare uninitialized DateTimeZone objects
45 DateException: Cannot compare two different kinds of DateTimeZone objects
46 DateException: Cannot compare two different kinds of DateTimeZone objects
H A DDateTimeZone_construct_error.phpt2 Test new DateTimeZone(): Too few arguments
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 ArgumentCountError: 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: DateInvalidTimeZoneException: DateTimeZone::__construct(): Timezone offset is out o…
22 Testing +99:62: DateInvalidTimeZoneException: DateTimeZone::__construct(): Timezone offset is out o…
23 Testing -99:62: DateInvalidTimeZoneException: DateTimeZone::__construct(): Timezone offset is out o…
24 Testing -99:60: DateInvalidTimeZoneException: DateTimeZone::__construct(): Timezone offset is out o…
25 Testing +9960: DateInvalidTimeZoneException: DateTimeZone::__construct(): Timezone offset is out of…
26 Testing -9960: DateInvalidTimeZoneException: DateTimeZone::__construct(): Timezone offset is out of…
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_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) {
41 Deprecated: Creation of dynamic property DateTimeZone::$property1 is deprecated in %s on line %d
43 Deprecated: Creation of dynamic property DateTimeZone::$property2 is deprecated in %s on line %d
44 object(DateTimeZone)#%d (4) {
56 object(DateTimeZone)#%d (4) {
69 Deprecated: Creation of dynamic property DateTimeZone::$property3 is deprecated in %s on line %d
72 object(DateTimeZone)#%d (6) {
[all …]
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 DDateTimeZone_serialization.phpt2 Test DateTimeZone::__serialize and DateTime::__unserialize
5 $tz = new DateTimeZone("CEST");
8 $tz = new DateTimeZone("UTC");
41 object(DateTimeZone)#%d (%d) {
47 object(DateTimeZone)#%d (%d) {
53 object(DateTimeZone)#%d (%d) {
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 DDateTimeZone_compare_basic1.phpt2 Test of compare object handler for DateTimeZone objects
18 var_dump(new DateTimeZone('Europe/Berlin') == new DateTimeZone('CET'));
25 $tz1 = new DateTimeZone($timezone1);
26 $tz2 = new DateTimeZone($timezone2);
36 // Test comparison of uninitialized DateTimeZone objects.
37 class MyDateTimeZone extends DateTimeZone {
77 DateException: Cannot compare two different kinds of DateTimeZone objects
78 DateObjectError: Trying to compare uninitialized DateTimeZone objects
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_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 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 DDateTimeZone_uninitialised_exceptions.phpt14 class MyDateTimeZone extends DateTimeZone
32 $dtz = new DateTimeZone("Europe/Kyiv");
48 DateObjectError: Object of type MyDateTimeZone (inheriting DateTimeZone) has not been correctly ini…
49 DateObjectError: Object of type MyDateTimeZone (inheriting DateTimeZone) has not been correctly ini…
50 DateObjectError: Object of type MyDateTimeZone (inheriting DateTimeZone) has not been correctly ini…
51 DateObjectError: Object of type MyDateTimeZone (inheriting DateTimeZone) has not been correctly ini…
52 DateObjectError: Object of type MyDateTimeZone (inheriting DateTimeZone) has not been correctly ini…
55 DateObjectError: Object of type MyDateTimeZone (inheriting DateTimeZone) has not been correctly ini…
56 DateObjectError: Object of type MyDateTimeZone (inheriting DateTimeZone) has not been correctly ini…
57 DateObjectError: Object of type MyDateTimeZone (inheriting DateTimeZone) has not been correctly ini…
[all …]
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_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 ***
/php-src/ext/intl/tests/
H A Dcalendar_toDateTime_error.phpt43 Warning: IntlCalendar::toDateTime(): intlcal_to_date_time: DateTimeZone constructor threw exception…
44 string(77) "exception: DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)"
46 Warning: intlcal_to_date_time(): intlcal_to_date_time: DateTimeZone constructor threw exception in …
47 string(66) "DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)"
49 Warning: IntlCalendar::toDateTime(): intlcal_to_date_time: DateTimeZone constructor threw exception…
50 string(66) "DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)"
52 Warning: intlcal_to_date_time(): intlcal_to_date_time: DateTimeZone constructor threw exception in …
53 string(66) "DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)"
/php-src/Zend/tests/type_declarations/variance/internal_parent/
H A Dmissing_return_type.phpt5 class MyDateTimeZone extends DateTimeZone
7 …public static function listIdentifiers(int $timezoneGroup = DateTimeZone::ALL, ?string $countryCod…
13 …p = DateTimeZone::ALL, ?string $countryCode = null) should either be compatible with DateTimeZone:…
H A Dincompatible_return_type.phpt5 class MyDateTimeZone extends DateTimeZone
7 …public static function listIdentifiers(int $timezoneGroup = DateTimeZone::ALL, ?string $countryCod…
16DateTimeZone::ALL, ?string $countryCode = null): string should either be compatible with DateTimeZ…
/php-src/ext/reflection/tests/
H A DReflectionMethod_tentative_return_type.phpt6 class MyDateTimeZone extends DateTimeZone
9 …public static function listIdentifiers(int $timezoneGroup = DateTimeZone::ALL, ?string $countryCod…
24 printInfo(new ReflectionMethod(DateTimeZone::class, 'listIdentifiers'));
37 Parameter #0 [ <optional> int $timezoneGroup = DateTimeZone::ALL ]
48 string(%d) "Method [ <user, overwrites DateTimeZone, prototype DateTimeZone> static public method l…
52 Parameter #0 [ <optional> int $timezoneGroup = DateTimeZone::ALL ]
/php-src/ext/date/
H A Dphp_date.stub.php190 function date_timezone_get(DateTimeInterface $object): DateTimeZone|false {}
212 function timezone_open(string $timezone): DateTimeZone|false {}
215 function timezone_name_get(DateTimeZone $object): string {}
233 function timezone_location_get(DateTimeZone $object): array|false {}
320 public function getTimezone(): DateTimeZone|false;
403 public function getTimezone(): DateTimeZone|false {}
409 public function setTimezone(DateTimeZone $timezone): DateTime {}
498 public function getTimezone(): DateTimeZone|false {}
533 public function setTimezone(DateTimeZone $timezone): DateTimeImmutable {}
556 class DateTimeZone class
[all …]

Completed in 35 milliseconds

1234567