1--TEST--
2IntlCalendar::createInstance() basic test
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7ini_set("intl.error_level", E_WARNING);
8ini_set("intl.default_locale", "nl");
9
10date_default_timezone_set('Europe/Amsterdam');
11
12$cal = IntlCalendar::createInstance();
13print_R($cal->getTimeZone());
14print_R($cal->getLocale(Locale::ACTUAL_LOCALE));
15echo "\n";
16print_R($cal->getType());
17echo "\n";
18
19$timeMillis = $cal->getTime();
20$time = time();
21
22var_dump(abs($timeMillis - $time * 1000) < 2000);
23
24?>
25--EXPECTF--
26IntlTimeZone Object
27(
28    [valid] => 1
29    [id] => Europe/Amsterdam
30    [rawOffset] => 3600000
31    [currentOffset] => %d
32)
33nl
34gregorian
35bool(true)
36