| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
IntlCalendar::set(PHP 5.5.0, PHP 7, PECL >= 3.0.0a1) IntlCalendar::set — Set a time field or several common fields at once 説明オブジェクト指向型
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
]]]] )手続き型
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. パラメータ
返り値
Returns 例
例1 IntlCalendar::set()
<?php 上の例の出力は以下となります。 string(20) "01/07/2011, 00:00:00" string(20) "01/07/2012, 00:00:00" 参考
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「IntlCalendar::set - Set a time field or several common fields at once」をGoogle検索
|