|
IntlCalendar::rollAdd value to field without carrying into more significant fields DescriptionObject 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::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
<?php The above example will output: string(20) "01/07/2013, 00:00:00" string(20) "01/06/2013, 00:00:00" See Also
|