Home
last modified time | relevance | path

Searched refs:IntlDateFormatter (Results 1 – 25 of 109) sorted by relevance

12345

/php-src/ext/intl/tests/
H A Ddateformat_format_relative.phpt10 printFormat(IntlDateFormatter::RELATIVE_FULL, IntlDateFormatter::NONE, getYesterday());
11 printFormat(IntlDateFormatter::RELATIVE_LONG, IntlDateFormatter::NONE, getYesterday());
12 printFormat(IntlDateFormatter::RELATIVE_MEDIUM, IntlDateFormatter::NONE, getYesterday());
13 printFormat(IntlDateFormatter::RELATIVE_SHORT, IntlDateFormatter::NONE, getYesterday());
15 printFormat(IntlDateFormatter::RELATIVE_FULL, IntlDateFormatter::NONE, getToday());
16 printFormat(IntlDateFormatter::RELATIVE_LONG, IntlDateFormatter::NONE, getToday());
17 printFormat(IntlDateFormatter::RELATIVE_MEDIUM, IntlDateFormatter::NONE, getToday());
18 printFormat(IntlDateFormatter::RELATIVE_SHORT, IntlDateFormatter::NONE, getToday());
20 printFormat(IntlDateFormatter::RELATIVE_FULL, IntlDateFormatter::NONE, getTomorrow());
21 printFormat(IntlDateFormatter::RELATIVE_LONG, IntlDateFormatter::NONE, getTomorrow());
[all …]
H A Ddateformat_calendars_variant_icu72-1.phpt2 IntlDateFormatter, calendars and time zone
14 IntlDateFormatter::FULL,
15 IntlDateFormatter::FULL,
17 IntlDateFormatter::TRADITIONAL);
19 IntlDateFormatter::FULL,
20 IntlDateFormatter::FULL,
22 IntlDateFormatter::GREGORIAN);
24 IntlDateFormatter::FULL,
25 IntlDateFormatter::FULL,
33 IntlDateFormatter::FULL,
[all …]
H A Ddateformat_calendars_variant3.phpt2 IntlDateFormatter, calendars and time zone
14 IntlDateFormatter::FULL,
15 IntlDateFormatter::FULL,
17 IntlDateFormatter::TRADITIONAL);
19 IntlDateFormatter::FULL,
20 IntlDateFormatter::FULL,
22 IntlDateFormatter::GREGORIAN);
24 IntlDateFormatter::FULL,
25 IntlDateFormatter::FULL,
33 IntlDateFormatter::FULL,
[all …]
H A Ddateformat_get_timetype.phpt16 IntlDateFormatter::FULL,
17 IntlDateFormatter::LONG,
18 IntlDateFormatter::MEDIUM,
19 IntlDateFormatter::SHORT,
20 IntlDateFormatter::NONE
28 …fmt = ut_datefmt_create( "de-DE", IntlDateFormatter::SHORT, $timetype_entry ,'America/Los_Angeles…
44 Creating IntlDateFormatter with time_type = 0
47 Creating IntlDateFormatter with time_type = 1
50 Creating IntlDateFormatter with time_type = 2
53 Creating IntlDateFormatter with time_type = 3
[all …]
H A Ddateformat_get_datetype.phpt16 IntlDateFormatter::FULL,
17 IntlDateFormatter::LONG,
18 IntlDateFormatter::MEDIUM,
19 IntlDateFormatter::SHORT,
20 IntlDateFormatter::NONE
28 …datefmt_create( "de-DE", $datetype_entry , IntlDateFormatter::SHORT,'America/Los_Angeles', IntlDa…
44 Creating IntlDateFormatter with date_type = 0
47 Creating IntlDateFormatter with date_type = 1
50 Creating IntlDateFormatter with date_type = 2
53 Creating IntlDateFormatter with date_type = 3
[all …]
H A Ddateformat_bug71516.phpt2 Bug #71516 IntlDateFormatter losts locale if pattern is set via constructor
9 $goodFormatter = new IntlDateFormatter($loc, IntlDateFormatter::FULL, IntlDateFormatter::FULL, new …
10 $badFormatter = new IntlDateFormatter($loc, IntlDateFormatter::FULL, IntlDateFormatter::FULL, new …
11 $badFormatter2 = new IntlDateFormatter($loc, IntlDateFormatter::FULL, IntlDateFormatter::FULL, new …
H A Ddateformat_formatObject_calendar_variant_icu72-1.phpt2 IntlDateFormatter::formatObject(): IntlCalendar tests
14 echo IntlDateFormatter::formatObject($cal), "\n";
15 echo IntlDateFormatter::formatObject($cal, IntlDateFormatter::FULL), "\n";
16 echo IntlDateFormatter::formatObject($cal, null, "en-US"), "\n";
17 echo IntlDateFormatter::formatObject($cal, array(IntlDateFormatter::SHORT, IntlDateFormatter::FULL)…
18 echo IntlDateFormatter::formatObject($cal, 'E y-MM-d HH,mm,ss.SSS v', "en-US"), "\n";
21 echo datefmt_format_object($cal, IntlDateFormatter::FULL), "\n";
25 echo IntlDateFormatter::formatObject($cal), "\n";
26 echo IntlDateFormatter::formatObject($cal, IntlDateFormatter::FULL, "en-US"), "\n";
H A Ddateformat_formatObject_calendar_variant5.phpt2 IntlDateFormatter::formatObject(): IntlCalendar tests
14 echo IntlDateFormatter::formatObject($cal), "\n";
15 echo IntlDateFormatter::formatObject($cal, IntlDateFormatter::FULL), "\n";
16 echo IntlDateFormatter::formatObject($cal, null, "en-US"), "\n";
17 echo IntlDateFormatter::formatObject($cal, array(IntlDateFormatter::SHORT, IntlDateFormatter::FULL)…
18 echo IntlDateFormatter::formatObject($cal, 'E y-MM-d HH,mm,ss.SSS v', "en-US"), "\n";
21 echo datefmt_format_object($cal, IntlDateFormatter::FULL), "\n";
25 echo IntlDateFormatter::formatObject($cal), "\n";
26 echo IntlDateFormatter::formatObject($cal, IntlDateFormatter::FULL, "en-US"), "\n";
H A Ddateformat_formatObject_datetime_variant_icu72-1.phpt2 IntlDateFormatter::formatObject(): DateTime tests
14 echo IntlDateFormatter::formatObject($dt), "\n";
15 echo IntlDateFormatter::formatObject($dt, IntlDateFormatter::FULL), "\n";
16 echo IntlDateFormatter::formatObject($dt, null, "en-US"), "\n";
17 echo IntlDateFormatter::formatObject($dt, array(IntlDateFormatter::SHORT, IntlDateFormatter::FULL),…
18 echo IntlDateFormatter::formatObject($dt, 'E y-MM-d HH,mm,ss.SSS v', "en-US"), "\n";
21 echo IntlDateFormatter::formatObject($dt, IntlDateFormatter::FULL), "\n";
H A Ddateformat_formatObject_datetime_variant5.phpt2 IntlDateFormatter::formatObject(): DateTime tests
14 echo IntlDateFormatter::formatObject($dt), "\n";
15 echo IntlDateFormatter::formatObject($dt, IntlDateFormatter::FULL), "\n";
16 echo IntlDateFormatter::formatObject($dt, null, "en-US"), "\n";
17 echo IntlDateFormatter::formatObject($dt, array(IntlDateFormatter::SHORT, IntlDateFormatter::FULL),…
18 echo IntlDateFormatter::formatObject($dt, 'E y-MM-d HH,mm,ss.SSS v', "en-US"), "\n";
21 echo IntlDateFormatter::formatObject($dt, IntlDateFormatter::FULL), "\n";
H A Ddateformat_formatObject_error.phpt2 IntlDateFormatter::formatObject(): error conditions
11 var_dump(IntlDateFormatter::formatObject(new stdclass));
14 var_dump(IntlDateFormatter::formatObject(new A));
17 var_dump(IntlDateFormatter::formatObject(new B));
23 var_dump(IntlDateFormatter::formatObject($cal, -2));
24 var_dump(IntlDateFormatter::formatObject($cal, array()));
25 var_dump(IntlDateFormatter::formatObject($cal, array(1,2,3)));
26 var_dump(IntlDateFormatter::formatObject($cal, array(array(), 1)));
27 var_dump(IntlDateFormatter::formatObject($cal, array(1, -2)));
28 var_dump(IntlDateFormatter::formatObject($cal, ""));
[all …]
H A Ddateformat_format_variant3.phpt26 IntlDateFormatter::FULL,
27 IntlDateFormatter::LONG,
28 IntlDateFormatter::MEDIUM,
29 IntlDateFormatter::SHORT,
30 IntlDateFormatter::NONE
160 IntlDateFormatter locale= en_US ,datetype = 0 ,timetype =0
162 IntlDateFormatter locale= en_US ,datetype = 1 ,timetype =1
164 IntlDateFormatter locale= en_US ,datetype = 2 ,timetype =2
166 IntlDateFormatter locale= en_US ,datetype = 3 ,timetype =3
175 IntlDateFormatter locale= en_US ,datetype = 0 ,timetype =0
[all …]
H A Dbug74298.phpt2 Bug #74298 (IntlDateFormatter->format() doesn't return microseconds/fractions)
9 var_dump((new \IntlDateFormatter(
11 \IntlDateFormatter::FULL,
12 \IntlDateFormatter::FULL,
14 \IntlDateFormatter::GREGORIAN,
20 \IntlDateFormatter::FULL,
21 \IntlDateFormatter::FULL,
23 \IntlDateFormatter::GREGORIAN,
H A Dbug69398-icu74.1.phpt2 IntlDateFormatter::formatObject(): returns wrong value when time style is NONE.
14 echo IntlDateFormatter::formatObject($date, array(IntlDateFormatter::SHORT, IntlDateFormatter::NONE…
15 echo IntlDateFormatter::formatObject ($date, array(IntlDateFormatter::SHORT, IntlDateFormatter::NON…
H A Dgh12282.phpt2 GitHub #12282 IntlDateFormatter::locale with invalid value.
9 new IntlDateFormatter(
11 IntlDateFormatter::FULL,
12 IntlDateFormatter::FULL,
23 new IntlDateFormatter(Locale::getDefault());
28 IntlDateFormatter::__construct(): Argument #1 ($locale) "xx" is invalid
29 IntlDateFormatter::__construct(): Argument #1 ($locale) "xx" is invalid
H A Dbug69398.phpt2 IntlDateFormatter::formatObject(): returns wrong value when time style is NONE.
14 echo IntlDateFormatter::formatObject($date, array(IntlDateFormatter::SHORT, IntlDateFormatter::NONE…
15 echo IntlDateFormatter::formatObject ($date, array(IntlDateFormatter::SHORT, IntlDateFormatter::NON…
H A Dbug62017.phpt9 datefmt_create('', IntlDateFormatter::NONE, IntlDateFormatter::NONE, "\xFF",
10 IntlDateFormatter::GREGORIAN, 'a'));
13 new IntlDateFormatter('', IntlDateFormatter::NONE, IntlDateFormatter::NONE, "Europe/Lisbon",
14 IntlDateFormatter::GREGORIAN, "\x80"));
23 Exception: IntlDateFormatter::__construct(): datefmt_create: error converting pattern to UTF-16 in …
H A Dbug68471.phpt2 Bug #68471 (IntlDateFormatter fails for "GMT+00:00" timezone)
7 $formatter = new IntlDateFormatter(
9 IntlDateFormatter::NONE,
10 IntlDateFormatter::NONE,
16 object(IntlDateFormatter)#1 (0) {
H A Dbug77895.phpt2 Bug #77895: IntlDateFormatter::create fails in strict mode if $locale = null
10 var_dump(IntlDateFormatter::create(null, IntlDateFormatter::NONE, IntlDateFormatter::NONE));
14 object(IntlDateFormatter)#1 (0) {
H A Ddateformat_format_parse_version_icu72-1.phpt24 IntlDateFormatter::FULL,
25 IntlDateFormatter::LONG,
26 IntlDateFormatter::MEDIUM
148 IntlDateFormatter locale= en_US ,datetype = 0 ,timetype =0
151 IntlDateFormatter locale= en_US ,datetype = 1 ,timetype =1
154 IntlDateFormatter locale= en_US ,datetype = 2 ,timetype =2
162 IntlDateFormatter locale= en_US ,datetype = 0 ,timetype =0
165 IntlDateFormatter locale= en_US ,datetype = 1 ,timetype =1
168 IntlDateFormatter locale= en_US ,datetype = 2 ,timetype =2
176 IntlDateFormatter locale= en_US ,datetype = 0 ,timetype =0
[all …]
H A Ddateformat_format_parse_version2.phpt24 IntlDateFormatter::FULL,
25 IntlDateFormatter::LONG,
26 IntlDateFormatter::MEDIUM
148 IntlDateFormatter locale= en_US ,datetype = 0 ,timetype =0
151 IntlDateFormatter locale= en_US ,datetype = 1 ,timetype =1
154 IntlDateFormatter locale= en_US ,datetype = 2 ,timetype =2
162 IntlDateFormatter locale= en_US ,datetype = 0 ,timetype =0
165 IntlDateFormatter locale= en_US ,datetype = 1 ,timetype =1
168 IntlDateFormatter locale= en_US ,datetype = 2 ,timetype =2
176 IntlDateFormatter locale= en_US ,datetype = 0 ,timetype =0
[all …]
H A Ddateformat___construct_bad_tz_cal.phpt2 IntlDateFormatter::__construct(): bad timezone or calendar
16 var_dump(new IntlDateFormatter(NULL, 0, 0, 'bad timezone'));
21 var_dump(new IntlDateFormatter(NULL, 0, 0, NULL, 3));
26 var_dump(new IntlDateFormatter(NULL, 0, 0, NULL, new stdclass));
32 Exception: IntlDateFormatter::__construct(): datefmt_create: No such time zone: 'bad timezone' in %…
34IntlDateFormatter::__construct(): datefmt_create: Invalid value for calendar type; it must be one …
36 Exception: IntlDateFormatter::__construct(): Argument #5 ($calendar) must be of type IntlCalendar|i…
H A Ddateformat_get_set_pattern2.phpt25 $res_str .= "\nCreating IntlDateFormatter with pattern = $start_pattern ";
26 …= ut_datefmt_create( "en-US", IntlDateFormatter::SHORT, IntlDateFormatter::SHORT , 'America/New_Y…
27 …t = ut_datefmt_create( "en-US", IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'America/New_Yo…
37 $res_str .= "\nSetting IntlDateFormatter with pattern = $pattern_entry ";
57 Creating IntlDateFormatter with pattern = dd-MM-YY
62 Setting IntlDateFormatter with pattern = DD-MM-YYYY hh:mm:ss
68 Setting IntlDateFormatter with pattern = yyyy-DDD.hh:mm:ss z
74 Setting IntlDateFormatter with pattern = yyyy/MM/dd
80 Setting IntlDateFormatter with pattern = yyyyMMdd
H A Ddateformat_get_locale.phpt29 $res_str .= "\nCreating IntlDateFormatter with locale = $locale_entry";
30 …atefmt_create( $locale_entry , IntlDateFormatter::SHORT,IntlDateFormatter::SHORT,'America/Los_Ange…
52 Creating IntlDateFormatter with locale = de-DE
55 Creating IntlDateFormatter with locale = sl-IT-nedis
58 Creating IntlDateFormatter with locale = en_UK
61 Creating IntlDateFormatter with locale = hi
H A Ddateformat_get_timezone_id.phpt28 $res_str .= "\nCreating IntlDateFormatter with timezone_id = $timezone_id_entry";
29 …= ut_datefmt_create( "de-DE", IntlDateFormatter::SHORT, IntlDateFormatter::SHORT, $timezone_id_en…
45 Creating IntlDateFormatter with timezone_id = America/New_York
48 Creating IntlDateFormatter with timezone_id = US/Pacific
51 Creating IntlDateFormatter with timezone_id = US/Central

Completed in 20 milliseconds

12345