| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
IntlCalendar::add(PHP 5.5.0, PHP 7, PECL >= 3.0.0a1) IntlCalendar::add — Add a (signed) amount of time to a field 説明オブジェクト指向型
public bool IntlCalendar::add
( int
$field
, int $amount
)手続き型 Add a signed amount to a field. Adding a positive amount allows advances in time, even if the numeric value of the field decreases (e.g. when working with years in BC dates). Other fields may need to adjusted ? for instance, adding a month to the 31st of January will result in the 28th (or 29th) of February. Contrary to IntlCalendar::roll(), when a value wraps around, more significant fields may change. For instance, adding a day to the 31st of January will result in the 1st of February, not the 1st of Janurary. パラメータ
返り値
Returns 例
例1 IntlCalendar::add()
<?php 上の例の出力は以下となります。 31 janv. 2012 00:00:00 29 f?vr. 2012 00:00:00 1 mars 2012 00:00:00 |
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「IntlCalendar::add - Add a (signed) amount of time to a field」をGoogle検索
|