IntlDateFormatter
PHP Manual

IntlDateFormatter::create

datefmt_create

IntlDateFormatter::__construct

(PHP 5 >= 5.3.0, PECL intl >= 1.0.0)

IntlDateFormatter::create -- datefmt_create -- IntlDateFormatter::__constructDate Formatter 、鋿ョ、ケ、�

タ篶タ

・ェ・ヨ・ク・ァ・ッ・ネサリク�キソ

static IntlDateFormatter IntlDateFormatter::create ( string $locale , int $datetype , int $timetype [, string $timezone [, int $calendar [, string $pattern ]]] )

・ェ・ヨ・ク・ァ・ッ・ネサリク�キソ (・ウ・ケ・ネ・鬣ッ・ソ)

IntlDateFormatter::__construct() ( string $locale , int $datetype , int $timetype [, string $timezone [, int $calendar [, string $pattern ]]] )

シ�ウ、ュキソ

IntlDateFormatter datefmt_create ( string $locale , int $datetype , int $timetype [, string $timezone [, int $calendar [, string $pattern ]]] )

Date Formatter 、鋿ョ、キ、゙、ケ。」

・ム・鬣癸シ・ソ

locale

・ユ・ゥ。シ・゙・テ・ネ、茹ム。シ・ケ、ホコン、ヒサネヘム、ケ、�愠ア。シ・�」

datetype

サネヘム、ケ、��ユ、ホキチシー (none, short, medium, long, full)。」 IntlDateFormatter 、ホト�� 、ホ、、、コ、�ォ、ネ、ハ、熙゙、ケ。」

timetype

サネヘム、ケ、��ケ�ホキチシー (none, short, medium, long, full)。」 IntlDateFormatter 、ホト�� 、ホ、、、コ、�ォ、ネ、ハ、熙゙、ケ。」

timezone

・ソ・、・爭セ。シ・� ID。」・ヌ・ユ・ゥ・�ネ、マ・キ・ケ・ニ・爨ホタ゚ト熙ネ、ハ、熙゙、ケ。」

calendar

・ユ・ゥ。シ・゙・テ・ネ、茹ム。シ・ケ、ホコン、ヒサネヘム、ケ、�ォ・�タ。シ。」・ヌ・ユ・ゥ・�ネ、マ Gregorian (・ー・�エ・�ェホ�) 、ヌ、ケ。」、ウ、�マ IntlDateFormatter 、ホ・ォ・�タ。シト�� 、ホ、、、コ、�ォ、ネ、ハ、熙゙、ケ。」

pattern

・ユ・ゥ。シ・゙・テ・ネ、茹ム。シ・ケ、ホコン、ヒサネヘム、ケ、�ェ・ラ・キ・逾ホ・ム・ソ。シ・」 サネ、ィ、�ム・ソ。シ・ヒ、ト、、、ニ、マ » http://userguide.icu-project.org/formatparse/datetime 、イセネ、ッ、タ、オ、、。」

ハヨ、�ヘ

ホ�

ホ�1 datefmt_create() 、ホホ�

<?php
$fmt 
datefmt_create"en_US" ,IntlDateFormatter::FULLIntlDateFormatter::FULL,
    
'America/Los_Angeles'IntlDateFormatter::GREGORIAN  );
echo 
"First Formatted output is ".datefmt_format$fmt 0);
$fmt datefmt_create"de-DE" ,IntlDateFormatter::FULLIntlDateFormatter::FULL,
    
'America/Los_Angeles',IntlDateFormatter::GREGORIAN  );
echo 
"Second Formatted output is ".datefmt_format$fmt 0);

$fmt datefmt_create"en_US" ,IntlDateFormatter::FULLIntlDateFormatter::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::FULLIntlDateFormatter::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::FULLIntlDateFormatter::FULL,
    
'America/Los_Angeles',IntlDateFormatter::GREGORIAN  );
echo 
"First Formatted output is ".$fmt->format(0);
$fmt = new IntlDateFormatter"de-DE" ,IntlDateFormatter::FULLIntlDateFormatter::FULL
    
'America/Los_Angeles',IntlDateFormatter::GREGORIAN  );
echo 
"Second Formatted output is ".$fmt->format(0);

$fmt = new IntlDateFormatter"en_US" ,IntlDateFormatter::FULLIntlDateFormatter::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::FULLIntlDateFormatter::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
         

サイケヘ


IntlDateFormatter
PHP Manual