<?php ini_set("intl.error_level", E_WARNING); ini_set("intl.default_locale", "nl"); $intlcal = IntlCalendar::createInstance('UTC'); $intlcal->setTime(strtotime('2012-02-29 05:06:07 +0000') * 1000); var_dump($intlcal->getLeastMaximum(IntlCalendar::FIELD_DAY_OF_MONTH), intlcal_get_least_maximum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH), $intlcal->getActualMaximum(IntlCalendar::FIELD_DAY_OF_MONTH), intlcal_get_actual_maximum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH), $intlcal->getMaximum(IntlCalendar::FIELD_DAY_OF_MONTH), intlcal_get_maximum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH)); ?> ==DONE==
<?php ini_set("intl.error_level", E_WARNING); $c = new IntlGregorianCalendar(NULL, 'pt_PT'); var_dump($c->getLeastMaximum()); var_dump($c->getMaximum()); var_dump($c->getGreatestMinimum()); var_dump($c->getMinimum()); var_dump($c->getLeastMaximum(-1)); var_dump($c->getMaximum(-1)); var_dump($c->getGreatestMinimum(-1)); var_dump($c->getMinimum(-1)); var_dump(intlcal_get_least_maximum($c, -1)); var_dump(intlcal_get_maximum($c, -1)); var_dump(intlcal_get_greatest_minimum($c, -1)); var_dump(intlcal_get_minimum($c, -1)); function eh($errno, $errstr) { echo "error: {$errno}, {$errstr}\n"; } set_error_handler('eh'); var_dump(intlcal_get_least_maximum(1, 1)); var_dump(intlcal_get_maximum(1, 1)); var_dump(intlcal_get_greatest_minimum(1, -1)); var_dump(intlcal_get_minimum(1, -1));