PageRenderTime 205ms CodeModel.GetById 60ms app.highlight 2ms RepoModel.GetById 142ms app.codeStats 0ms

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

http://github.com/facebook/hiphop-php
PHP | 22 lines | 18 code | 4 blank | 0 comment | 0 complexity | 68731d73423940d18490f4574dcbb3ac MD5 | raw file
 1<?php
 2ini_set("intl.error_level", E_WARNING);
 3ini_set("intl.default_locale", "nl");
 4
 5$intlcal = IntlCalendar::createInstance('Europe/Amsterdam');
 6print_r($intlcal->getTimeZone()->getID());
 7echo "\n";
 8var_dump($intlcal->get(IntlCalendar::FIELD_ZONE_OFFSET));
 9
10$intlcal->setTimeZone(IntlTimeZone::getGMT());
11print_r($intlcal->getTimeZone()->getID());
12echo "\n";
13var_dump($intlcal->get(IntlCalendar::FIELD_ZONE_OFFSET));
14
15intlcal_set_time_zone($intlcal,
16		IntlTimeZone::createTimeZone('GMT+05:30'));
17print_r($intlcal->getTimeZone()->getID());
18echo "\n";
19var_dump($intlcal->get(IntlCalendar::FIELD_ZONE_OFFSET));
20
21?>
22==DONE==