Home
last modified time | relevance | path

Searched refs:df (Results 1 – 25 of 45) sorted by relevance

12

/PHP-7.4/ext/date/tests/
H A Dbug53437_var4.phpt9 $df = $dt->diff(new DateTime('2009-10-13'));
11 var_dump($df,
12 $df->y,
13 $df->m,
14 $df->d,
15 $df->h,
16 $df->i,
17 $df->s,
18 $df->f,
19 $df->invert,
[all …]
/PHP-7.4/ext/intl/tests/
H A Ddateformat_get_set_timezone.phpt15 function d(IntlDateFormatter $df) {
17 echo $df->format($ts), "\n";
19 $df->getTimeZoneID(),
20 $df->getTimeZone()->getID());
25 d($df);
27 $df->setTimeZone(NULL);
28 d($df);
30 $df->setTimeZone('Europe/Madrid');
31 d($df);
34 d($df);
[all …]
H A Ddateformat_get_set_timezone_variant2.phpt15 function d(IntlDateFormatter $df) {
17 echo $df->format($ts), "\n";
19 $df->getTimeZoneID(),
20 $df->getTimeZone()->getID());
25 d($df);
27 $df->setTimeZone(NULL);
28 d($df);
30 $df->setTimeZone('Europe/Madrid');
31 d($df);
34 d($df);
[all …]
H A Ddateformat_get_set_timezone_variant4.phpt16 function d(IntlDateFormatter $df) {
18 echo $df->format($ts), "\n";
20 $df->getTimeZoneID(),
21 $df->getTimeZone()->getID());
26 d($df);
28 $df->setTimeZone(NULL);
29 d($df);
31 $df->setTimeZone('Europe/Madrid');
32 d($df);
35 d($df);
[all …]
H A Ddateformat_get_set_timezone_variant5.phpt15 function d(IntlDateFormatter $df) {
17 echo $df->format($ts), "\n";
19 $df->getTimeZoneID(),
20 $df->getTimeZone()->getID());
25 d($df);
27 $df->setTimeZone(NULL);
28 d($df);
30 $df->setTimeZone('Europe/Madrid');
31 d($df);
34 d($df);
[all …]
H A Ddateformat_get_set_timezone_variant3.phpt16 function d(IntlDateFormatter $df) {
18 echo $df->format($ts), "\n";
20 $df->getTimeZoneID(),
21 $df->getTimeZone()->getID());
26 d($df);
28 $df->setTimeZone(NULL);
29 d($df);
31 $df->setTimeZone('Europe/Madrid');
32 d($df);
35 d($df);
[all …]
H A Ddateformat_timezone_arg_variations.phpt15 $df = new IntlDateFormatter('es_ES', 0, 0, NULL);
16 echo $df->format($ts), "\n";
18 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam');
19 echo $df->format($ts), "\n";
21 $df = new IntlDateFormatter('es_ES', 0, 0, new DateTimeZone('Europe/Lisbon'));
22 echo $df->format($ts), "\n";
25 echo $df->format($ts), "\n";
29 echo $df->format($ts), "\n";
33 echo $df->format($ts), "\n";
35 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0);
[all …]
H A Ddateformat_timezone_arg_variations4.phpt15 $df = new IntlDateFormatter('es_ES', 0, 0, NULL);
16 echo $df->format($ts), "\n";
18 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam');
19 echo $df->format($ts), "\n";
21 $df = new IntlDateFormatter('es_ES', 0, 0, new DateTimeZone('Europe/Lisbon'));
22 echo $df->format($ts), "\n";
25 echo $df->format($ts), "\n";
29 echo $df->format($ts), "\n";
33 echo $df->format($ts), "\n";
35 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0);
[all …]
H A Ddateformat_get_set_calendar.phpt15 function d(IntlDateFormatter $df) {
17 echo $df->format($ts), "\n";
18 var_dump($df->getCalendar(),
19 $df->getCalendarObject()->getType(),
20 $df->getCalendarObject()->getTimeZone()->getId());
24 $df = new IntlDateFormatter('fr@calendar=islamic', 0, 0, 'Europe/Minsk');
25 d($df);
29 $df->setCalendar(IntlDateFormatter::TRADITIONAL);
30 d($df);
34 $df->setCalendar($cal);
[all …]
H A Ddateformat_get_set_calendar_variant2.phpt15 function d(IntlDateFormatter $df) {
17 echo $df->format($ts), "\n";
18 var_dump($df->getCalendar(),
19 $df->getCalendarObject()->getType(),
20 $df->getCalendarObject()->getTimeZone()->getId());
24 $df = new IntlDateFormatter('fr@calendar=islamic', 0, 0, 'Europe/Minsk');
25 d($df);
29 $df->setCalendar(IntlDateFormatter::TRADITIONAL);
30 d($df);
34 $df->setCalendar($cal);
[all …]
H A Ddateformat_get_set_calendar_variant_icu70.phpt16 function d(IntlDateFormatter $df) {
18 echo $df->format($ts), "\n";
19 var_dump($df->getCalendar(),
20 $df->getCalendarObject()->getType(),
21 $df->getCalendarObject()->getTimeZone()->getId());
25 $df = new IntlDateFormatter('fr@calendar=islamic', 0, 0, 'Europe/Minsk');
26 d($df);
30 $df->setCalendar(IntlDateFormatter::TRADITIONAL);
31 d($df);
35 $df->setCalendar($cal);
[all …]
H A Ddateformat_create_cal_arg.phpt16 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
17 echo $df->format($ts), "\n";
20 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
21 echo $df->format($ts), "\n";
26 echo $df->format($ts), "\n";
29 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0);
30 echo $df->format($ts), "\n";
34 echo $df->format($ts), "\n";
38 echo $df->format($ts), "\n";
40 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0);
[all …]
H A Ddateformat_timezone_arg_variations2.phpt15 $df = new IntlDateFormatter('es_ES', 0, 0, NULL);
16 echo $df->format($ts), "\n";
18 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam');
19 echo $df->format($ts), "\n";
21 $df = new IntlDateFormatter('es_ES', 0, 0, new DateTimeZone('Europe/Lisbon'));
22 echo $df->format($ts), "\n";
25 echo $df->format($ts), "\n";
29 echo $df->format($ts), "\n";
33 echo $df->format($ts), "\n";
35 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0);
[all …]
H A Ddateformat_timezone_arg_variations3.phpt16 $df = new IntlDateFormatter('es_ES', 0, 0, NULL);
17 echo $df->format($ts), "\n";
19 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam');
20 echo $df->format($ts), "\n";
22 $df = new IntlDateFormatter('es_ES', 0, 0, new DateTimeZone('Europe/Lisbon'));
23 echo $df->format($ts), "\n";
26 echo $df->format($ts), "\n";
30 echo $df->format($ts), "\n";
34 echo $df->format($ts), "\n";
36 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0);
[all …]
H A Ddateformat_get_set_calendar_variant3.phpt16 function d(IntlDateFormatter $df) {
18 echo $df->format($ts), "\n";
19 var_dump($df->getCalendar(),
20 $df->getCalendarObject()->getType(),
21 $df->getCalendarObject()->getTimeZone()->getId());
25 $df = new IntlDateFormatter('fr@calendar=islamic', 0, 0, 'Europe/Minsk');
26 d($df);
30 $df->setCalendar(IntlDateFormatter::TRADITIONAL);
31 d($df);
35 $df->setCalendar($cal);
[all …]
H A Ddateformat_get_set_calendar_variant4.phpt16 function d(IntlDateFormatter $df) {
18 echo $df->format($ts), "\n";
19 var_dump($df->getCalendar(),
20 $df->getCalendarObject()->getType(),
21 $df->getCalendarObject()->getTimeZone()->getId());
25 $df = new IntlDateFormatter('fr@calendar=islamic', 0, 0, 'Europe/Minsk');
26 d($df);
30 $df->setCalendar(IntlDateFormatter::TRADITIONAL);
31 d($df);
35 $df->setCalendar($cal);
[all …]
H A Ddateformat_get_set_calendar_variant5.phpt16 function d(IntlDateFormatter $df) {
18 echo $df->format($ts), "\n";
19 var_dump($df->getCalendar(),
20 $df->getCalendarObject()->getType(),
21 $df->getCalendarObject()->getTimeZone()->getId());
25 $df = new IntlDateFormatter('fr@calendar=islamic', 0, 0, 'Europe/Minsk');
26 d($df);
30 $df->setCalendar(IntlDateFormatter::TRADITIONAL);
31 d($df);
35 $df->setCalendar($cal);
[all …]
H A Ddateformat_create_cal_arg_variant2.phpt16 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
17 echo $df->format($ts), "\n";
20 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
21 echo $df->format($ts), "\n";
26 echo $df->format($ts), "\n";
29 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0);
30 echo $df->format($ts), "\n";
34 echo $df->format($ts), "\n";
38 echo $df->format($ts), "\n";
40 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0);
[all …]
H A Ddateformat_create_cal_arg_variant3.phpt17 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
18 echo $df->format($ts), "\n";
21 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
22 echo $df->format($ts), "\n";
27 echo $df->format($ts), "\n";
30 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0);
31 echo $df->format($ts), "\n";
35 echo $df->format($ts), "\n";
39 echo $df->format($ts), "\n";
41 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0);
[all …]
H A Ddateformat_create_cal_arg_variant4.phpt17 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
18 echo $df->format($ts), "\n";
21 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
22 echo $df->format($ts), "\n";
27 echo $df->format($ts), "\n";
30 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0);
31 echo $df->format($ts), "\n";
35 echo $df->format($ts), "\n";
39 echo $df->format($ts), "\n";
41 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0);
[all …]
H A Ddateformat_create_cal_arg_variant5.phpt16 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
17 echo $df->format($ts), "\n";
20 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
21 echo $df->format($ts), "\n";
26 echo $df->format($ts), "\n";
29 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0);
30 echo $df->format($ts), "\n";
34 echo $df->format($ts), "\n";
38 echo $df->format($ts), "\n";
40 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0);
[all …]
H A Ddateformat_getTimeZone_error.phpt13 $df = new IntlDateFormatter(NULL, 0, 0);
15 var_dump($df->getTimeZone(9));
16 var_dump(datefmt_get_timezone($df, 9));
17 var_dump(datefmt_get_timezone($df, 9));
H A Ddateformat_getCalendarObject_error.phpt13 $df = new IntlDateFormatter(NULL, 0, 0);
15 var_dump($df->getCalendarObject(9));
16 var_dump(datefmt_get_calendar_object($df, 9));
17 var_dump(datefmt_get_calendar_object($df, 9));
H A Ddateformat_setTimeZone_error.phpt13 $df = new IntlDateFormatter(NULL, 0, 0);
15 var_dump($df->setTimeZone());
17 var_dump($df->setTimeZone(array()));
18 var_dump($df->setTimeZone(1, 2));
19 var_dump($df->setTimeZone('non existing timezone'));
/PHP-7.4/ext/intl/dateformat/
H A Ddateformat_format_object.cpp77 DateFormat *df = NULL; in PHP_FUNCTION() local
202 df = new SimpleDateFormat( in PHP_FUNCTION()
215 df = DateFormat::createDateTimeInstance(dateStyle, timeStyle, in PHP_FUNCTION()
218 if (df == NULL) { /* according to ICU sources, this should never happen */ in PHP_FUNCTION()
228 df->adoptCalendar(cal); in PHP_FUNCTION()
230 df->adoptTimeZone(timeZone); in PHP_FUNCTION()
236 df->format(date, result); in PHP_FUNCTION()
251 delete df; in PHP_FUNCTION()

Completed in 30 milliseconds

12