PageRenderTime 50ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

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

http://github.com/facebook/hiphop-php
PHP | 21 lines | 15 code | 6 blank | 0 comment | 0 complexity | ab62bcd726c0c4062ce37f088ee8c39f 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. date_default_timezone_set('Europe/Amsterdam');
  5. $cal = IntlCalendar::createInstance();
  6. print_R($cal->getTimeZone());
  7. print_R($cal->getLocale(Locale::ACTUAL_LOCALE));
  8. echo "\n";
  9. print_R($cal->getType());
  10. echo "\n";
  11. $timeMillis = $cal->getTime();
  12. $time = time();
  13. var_dump(abs($timeMillis - $time * 1000) < 1000);
  14. ?>
  15. ==DONE==