Set whether date/time interpretation is to be lenient (original) (raw)

IntlCalendar::setLenient

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

IntlCalendar::setLenient — Set whether date/time interpretation is to be lenient

Description

Object oriented style

public IntlCalendar::setLenient ( bool $isLenient ) : bool

intlcal_set_lenient ( IntlCalendar $cal , bool $isLenient ) : bool

Parameters

cal

The IntlCalendar resource.

isLenient

Use TRUE to activate the lenient mode; FALSE otherwise.

Return Values

Returns TRUE on success. Failure can only happen due to invalid parameters.