(PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
IntlDateFormatter::create -- datefmt_create -- IntlDateFormatter::__construct — Date Formatter 、鋿ョ、ケ、�
・ェ・ヨ・ク・ァ・ッ・ネサリク�キソ
・ェ・ヨ・ク・ァ・ッ・ネサリク�キソ (・ウ・ケ・ネ・鬣ッ・ソ)
シ�ウ、ュキソ
Date Formatter 、鋿ョ、キ、゙、ケ。」
・ユ・ゥ。シ・゙・テ・ネ、茹ム。シ・ケ、ホコン、ヒサネヘム、ケ、�愠ア。シ・�」
サネヘム、ケ、��ユ、ホキチシー (none, short, medium, long, full)。」 IntlDateFormatter 、ホト�� 、ホ、、、コ、�ォ、ネ、ハ、熙゙、ケ。」
サネヘム、ケ、��ケ�ホキチシー (none, short, medium, long, full)。」 IntlDateFormatter 、ホト�� 、ホ、、、コ、�ォ、ネ、ハ、熙゙、ケ。」
・ソ・、・爭セ。シ・� ID。」・ヌ・ユ・ゥ・�ネ、マ・キ・ケ・ニ・爨ホタ゚ト熙ネ、ハ、熙゙、ケ。」
・ユ・ゥ。シ・゙・テ・ネ、茹ム。シ・ケ、ホコン、ヒサネヘム、ケ、�ォ・�タ。シ。」・ヌ・ユ・ゥ・�ネ、マ Gregorian (・ー・�エ・�ェホ�) 、ヌ、ケ。」、ウ、�マ IntlDateFormatter 、ホ・ォ・�タ。シト�� 、ホ、、、コ、�ォ、ネ、ハ、熙゙、ケ。」
・ユ・ゥ。シ・゙・テ・ネ、茹ム。シ・ケ、ホコン、ヒサネヘム、ケ、�ェ・ラ・キ・逾ホ・ム・ソ。シ・」 サネ、ィ、�ム・ソ。シ・ヒ、ト、、、ニ、マ » http://userguide.icu-project.org/formatparse/datetime 、イセネ、ッ、タ、オ、、。」
ホ�1 datefmt_create() 、ホホ�
<?php
$fmt = datefmt_create( "en_US" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL,
'America/Los_Angeles', IntlDateFormatter::GREGORIAN );
echo "First Formatted output is ".datefmt_format( $fmt , 0);
$fmt = datefmt_create( "de-DE" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL,
'America/Los_Angeles',IntlDateFormatter::GREGORIAN );
echo "Second Formatted output is ".datefmt_format( $fmt , 0);
$fmt = datefmt_create( "en_US" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL,
'America/Los_Angeles',IntlDateFormatter::GREGORIAN ,"MM/dd/yyyy");
echo "First Formatted output with pattern is ".datefmt_format( $fmt , 0);
$fmt = datefmt_create( "de-DE" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL,
'America/Los_Angeles',IntlDateFormatter::GREGORIAN ,"MM/dd/yyyy");
echo "Second Formatted output with pattern is ".datefmt_format( $fmt , 0);
?>
ホ�2 ・ェ・ヨ・ク・ァ・ッ・ネサリク�、ホホ�
<?php
$fmt = new IntlDateFormatter( "en_US" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL,
'America/Los_Angeles',IntlDateFormatter::GREGORIAN );
echo "First Formatted output is ".$fmt->format(0);
$fmt = new IntlDateFormatter( "de-DE" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL,
'America/Los_Angeles',IntlDateFormatter::GREGORIAN );
echo "Second Formatted output is ".$fmt->format(0);
$fmt = new IntlDateFormatter( "en_US" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL,
'America/Los_Angeles',IntlDateFormatter::GREGORIAN ,"MM/dd/yyyy");
echo "First Formatted output with pattern is ".$fmt->format(0);
$fmt = new IntlDateFormatter( "de-DE" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL,
'America/Los_Angeles',IntlDateFormatter::GREGORIAN , "MM/dd/yyyy");
echo "Second Formatted output with pattern is ".$fmt->format(0);
?>
セ螟ホホ网ホスミホマ、マーハイシ、ネ、ハ、熙゙、ケ。」
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