|
IntlCalendar::rollAdd value to field without carrying into more significant fields DescriptionObject-oriented style
public bool IntlCalendar::roll(int
$field, intbool $value)Procedural style bool intlcal_roll(IntlCalendar
$calendar, int $field, intbool $value)Adds a (signed) amount to a field. The difference with respect to IntlCalendar::add is that when the field value overflows, it does not carry into more significant fields. Parameters
Return Values
Returns Examples
Example #1 IntlCalendar::roll The above example will output: string(20) "01/07/2013, 00:00:00" string(20) "01/06/2013, 00:00:00" See Also
|