--TEST-- IntlDateFormatter: several forms of the calendar arg --SKIPIF-- = 54.1'); ?> --FILE-- format($ts), "\n"; $cal = IntlCalendar::createInstance('UTC', 'en@calendar=islamic'); $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal); echo $df->format($ts), "\n"; //override calendar's timezone $cal = new IntlGregorianCalendar('UTC', NULL); $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Madrid', $cal); echo $df->format($ts), "\n"; //default calendar is gregorian $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0); echo $df->format($ts), "\n"; //try now with traditional $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, NULL, IntlDateFormatter::TRADITIONAL); echo $df->format($ts), "\n"; //the timezone can be overridden when not specifying a calendar $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, 'UTC', IntlDateFormatter::TRADITIONAL); echo $df->format($ts), "\n"; $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0); echo $df->format($ts), "\n"; ?> ==DONE== --EXPECTF-- domingo%S 1 de enero de 2012, 0:00:00 (GMT) domingo%S 8 de Safar de 1433, 0:00:00 (GMT) domingo, 1 de enero de 2012, 1:00:00 (hora estándar de Europa central) sábado, 31 de diciembre de 2011 d. C., 23:00:00 (hora estándar de las Azores) sábado, 7 de Safar de 1433 AH, 23:00:00 (hora estándar de las Azores) domingo%S 8 de Safar de 1433 AH, 0:00:00 (GMT) domingo%S 1 de enero de 2012, 0:00:00 (GMT) ==DONE==