|
IntlCalendar::setSet a time field or several common fields at once DescriptionObject oriented style
public bool IntlCalendar::set
( int
$field
, int $value
)
public bool IntlCalendar::set
( int
$year
, int $month
[, int $dayOfMonth = NULL
[, int $hour = NULL
[, int $minute = NULL
[, int $second = NULL
]]]] )Procedural style
bool intlcal_set
( IntlCalendar
$cal
, int $field
, int $value
)
bool intlcal_set
( IntlCalendar
$cal
, int $year
, int $month
[, int $dayOfMonth = NULL
[, int $hour = NULL
[, int $minute = NULL
[, int $second = NULL
]]]] )Sets either a specific field to the given value, or sets at once several common fields. The range of values that are accepted depend on whether the calendar is using the lenient mode. For fields that conflict, the fields that are set later have priority. This method cannot be called with exactly four arguments. Parameters
Return Values
Returns Examples
Example #1 IntlCalendar::set
<?php The above example will output: string(20) "01/07/2011, 00:00:00" string(20) "01/07/2012, 00:00:00" See Also
|