IntlCalendar::roll

IntlCalendar::roll

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

IntlCalendar::rollAdd value to field without carrying into more significant fields

Description

Object oriented style

public bool IntlCalendar::roll ( int $field , mixed $amountOrUpOrDown )

Procedural style

bool intlcal_roll ( IntlCalendar $cal , int $field , mixed $amountOrUpOrDown )

Adds a (signed) amount to a field. The difference with respect to IntlCalendar