|
IntlCalendar::setSet a time field or several common fields at once BeschreibungObjektorientierter Stil
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
]]]] )Prozeduraler Stil
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. Parameter-Liste
Rückgabewerte
Returns Beispiele
Beispiel #1 IntlCalendar::set
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: string(20) "01/07/2011, 00:00:00" string(20) "01/07/2012, 00:00:00" Siehe auch
|