PageRenderTime 46ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/bad/ext/intl/tests/calendar_setTimeZone_variation1.php

http://github.com/facebook/hiphop-php
PHP | 17 lines | 13 code | 3 blank | 1 comment | 0 complexity | a533fd0ed1dfbe28375c02b3eea7b633 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
  1. <?php
  2. ini_set("intl.error_level", E_WARNING);
  3. ini_set("intl.default_locale", "nl");
  4. $intlcal = IntlCalendar::createInstance('Europe/Amsterdam');
  5. print_r($intlcal->getTimeZone()->getID());
  6. echo "\n";
  7. var_dump($intlcal->get(IntlCalendar::FIELD_ZONE_OFFSET));
  8. /* passing NULL has no effect */
  9. $intlcal->setTimeZone(null);
  10. print_r($intlcal->getTimeZone()->getID());
  11. echo "\n";
  12. var_dump($intlcal->get(IntlCalendar::FIELD_ZONE_OFFSET));
  13. ?>
  14. ==DONE==