1--TEST--
2IntlGregorianCalendar::__construct(): argument variants
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7ini_set("intl.error_level", E_WARNING);
8
9date_default_timezone_set('Europe/Amsterdam');
10
11$intlcal = intlgregcal_create_instance(2012, 1, 29, 16, 0, 0);
12var_dump($intlcal->getTimeZone()->getId());
13var_dump($intlcal->getTime(), (float)strtotime('2012-02-29 16:00:00') * 1000);
14
15$intlcal = new IntlGregorianCalendar(2012, 1, 29, 16, 7, 8);
16var_dump($intlcal->getTime(), (float)strtotime('2012-02-29 16:07:08') * 1000);
17
18var_dump($intlcal->getType());
19?>
20--EXPECT--
21string(16) "Europe/Amsterdam"
22float(1330527600000)
23float(1330527600000)
24float(1330528028000)
25float(1330528028000)
26string(9) "gregorian"
27