<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Set whether date/time interpretation is to be lenient</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="intlcalendar.setfirstdayofweek.html">IntlCalendar::setFirstDayOfWeek</a></div> <div class="next" style="text-align: right; float: right;"><a href="intlcalendar.setrepeatedwalltimeoption.html">IntlCalendar::setRepeatedWallTimeOption</a></div> <div class="up"><a href="class.intlcalendar.html">IntlCalendar</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="intlcalendar.setlenient" class="refentry"> <div class="refnamediv"> <h1 class="refname">IntlCalendar::setLenient</h1> <p class="verinfo">(PHP 5.5.0, PECL >= 3.0.0a1)</p><p class="refpurpose"><span class="refname">IntlCalendar::setLenient</span> — <span class="dc-title">Set whether date/time interpretation is to be lenient</span></p> </div> <div class="refsect1 description" id="refsect1-intlcalendar.setlenient-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type"><span class="type ReturnType">ReturnType</span></span> <span class="methodname"><strong>IntlCalendar::setLenient</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$isLenient</code></span> )</div> <p class="para rdfs-comment"> Defines whether the calendar is ‘lenient mode’. In such a mode, some of out-of-bounds values for some fields are accepted, the behavior being similar to that of <span class="function"><a href="intlcalendar.add.html" class="function">IntlCalendar::add()</a></span> (i.e., the value wraps around, carrying into more significant fields each time). If the lenient mode is off, then such values will generate an error. </p> </div> <div class="refsect1 parameters" id="refsect1-intlcalendar.setlenient-parameters"> <h3 class="title">Parameters</h3> <dl> <dt> <span class="term"><em><code class="parameter">isLenient</code></em></span> <dd> <p class="para"> Use <strong><code>TRUE</code></strong> to activate the lenient mode; <strong><code>FALSE</code></strong> otherwise. </p> </dd> </dt> </dl> </div> <div class="refsect1 returnvalues" id="refsect1-intlcalendar.setlenient-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <strong><code>TRUE</code></strong> on success. Failure can only happen due to invalid parameters. </p> </div> <div class="refsect1 examples" id="refsect1-intlcalendar.setlenient-examples"> <h3 class="title">Examples</h3> <p class="para"> See the example in <span class="function"><a href="intlcalendar.islenient.html" class="function">IntlCalendar::isLenient()</a></span>. </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="intlcalendar.setfirstdayofweek.html">IntlCalendar::setFirstDayOfWeek</a></div> <div class="next" style="text-align: right; float: right;"><a href="intlcalendar.setrepeatedwalltimeoption.html">IntlCalendar::setRepeatedWallTimeOption</a></div> <div class="up"><a href="class.intlcalendar.html">IntlCalendar</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>