IntlCalendar::add

IntlCalendar::add

(PHP 5.5.0, PHP 7, PECL >= 3.0.0a1)

IntlCalendar::addAdd a (signed) amount of time to a field

Description

Object oriented style

public bool IntlCalendar::add ( int $field , int $amount )

Procedural style

bool intlcal_add ( IntlCalendar $cal , int $field , int $amount )

Add a signed amount to a field. Adding a positive amount allows advances in time, even if the numeric value of the field decreases (e.g. when working with years in BC dates).

Other fields may n