1--TEST--
2IntlCalendar::add() basic test
3--INI--
4date.timezone=Atlantic/Azores
5--SKIPIF--
6<?php
7if (!extension_loaded('intl'))
8	die('skip intl extension not enabled');
9--FILE--
10<?php
11ini_set("intl.error_level", E_WARNING);
12ini_set("intl.default_locale", "nl");
13
14$time = strtotime('2012-02-29 00:00:00 +0000');
15$time2 = strtotime('2012-03-01 05:06:07 +0000');
16
17$intlcal = IntlCalendar::createInstance('UTC');
18$intlcal->setTime($time * 1000);
19$intlcal->add(IntlCalendar::FIELD_DAY_OF_MONTH, 1);
20$intlcal->add(IntlCalendar::FIELD_HOUR, 5);
21$intlcal->add(IntlCalendar::FIELD_MINUTE, 6);
22intlcal_add($intlcal, IntlCalendar::FIELD_SECOND, 7);
23
24var_dump(
25	(float)$time2*1000,
26	$intlcal->getTime());
27
28?>
29==DONE==
30--EXPECT--
31float(1330578367000)
32float(1330578367000)
33==DONE==
33