PHP » GoLang |
login |
register |
about
|
GoLang IntlCalendar::set
request it (406)
GoLang replacement for PHP's IntlCalendar::set
[edit | history]
IntlCalendar::set(PHP 5 >= 5.5.0, PHP 7, PECL >= 3.0.0a1) IntlCalendar::set — Set 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 $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
|
more
Recently updated
more
Most requested
more
Last requests
|