PageRenderTime 36ms CodeModel.GetById 33ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/hphp/test/zend/good/ext/intl/tests/calendar_clear_variation1.php

http://github.com/facebook/hiphop-php
PHP | 17 lines | 14 code | 1 blank | 2 comment | 0 complexity | dc61952b21210aaf203bdf795b885358 MD5 | raw file
 1<?hh <<__EntryPoint>> function main(): void {
 2ini_set("intl.error_level", E_WARNING);
 3ini_set("intl.default_locale", "nl");
 4
 5$intlcal = IntlCalendar::createInstance('UTC');
 6$intlcal->setTime(strtotime('2012-02-29 05:06:07 +0000') * 1000);
 7//print_R($intlcal);
 8var_dump($intlcal->isSet(IntlCalendar::FIELD_MONTH));
 9var_dump($intlcal->clear(IntlCalendar::FIELD_MONTH));
10var_dump($intlcal->isSet(IntlCalendar::FIELD_MONTH));
11//print_R($intlcal);
12var_dump(
13    $intlcal->getTime(),
14    strtotime('2012-01-29 05:06:07 +0000') * 1000.
15);
16echo "==DONE==";
17}