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