| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
IntlDateFormatter::createdatefmt_createIntlDateFormatter::__construct(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) IntlDateFormatter::create -- datefmt_create -- IntlDateFormatter::__construct — Date Formatter を作成する 説明オブジェクト指向型
public
static
IntlDateFormatter IntlDateFormatter::create
( string
$locale
, int $datetype
, int $timetype
[, mixed $timezone = NULL
[, mixed $calendar = NULL
[, string $pattern = ""
]]] )オブジェクト指向型 (コンストラクタ)
public
IntlDateFormatter::__construct
( string
$locale
, int $datetype
, int $timetype
[, mixed $timezone = NULL
[, mixed $calendar = NULL
[, string $pattern = ""
]]] )手続き型
IntlDateFormatter datefmt_create
( string
$locale
, int $datetype
, int $timetype
[, mixed $timezone = NULL
[, mixed $calendar = NULL
[, string $pattern = ""
]]] )Date Formatter を作成します。 パラメータ
返り値
作成された IntlDateFormatter を返します。失敗した場合は 変更履歴
例例1 datefmt_create() の例
<?php 例2 オブジェクト指向の例
<?php 上の例の出力は以下となります。 First Formatted output is Wednesday, December 31, 1969 4:00:00 PM PT Second Formatted output is Mittwoch, 31. Dezember 1969 16:00 Uhr GMT-08:00 First Formatted output with pattern is 12/31/1969 Second Formatted output with pattern is 12/31/1969 参考
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「IntlDateFormatter::create - Date Formatter を作成する」をGoogle検索
|