« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 2 of about 2 for winter (0.001 sec.)
タイムゾーンのオフセットを返す 9357
« DateTimeInterface::getMicrosecond DateTimeInterface::getTimestamp » PHP Manual DateTimeInterface タイムゾーンのオフセットを返す 検索 DateTimeInterface::getOffset DateTimeImmutable::getOffset DateTime::getOffset date_offset_get (PHP 5 >= 5 ... 戻り値 成功した場合には UTC からのタイムゾーンオフセット秒数、 例 例1 DateTime::getOffset() の例 オブジェクト指向型 <?php $winter = new DateTimeImmutable ( '2010-12-21' , new DateTimeZone ( 'America/New_York' )); $summer = new DateTimeImmutable ( '2008 ... -06-21' , new DateTimeZone ( 'America/New_York' )); echo $winter -> getOffset () . "\n" ; echo $summer -> getOffset () . "\n" ; 上の例の出力は以下となります。 -18000 -14400 手続き型 <?php ... $winter = date_create ( '2010-12-21' , timezone_open ( 'America/New_York' )); $summer = date_create ( '2008-06-21' , timezone_open ...
https://man.mtool.work/php/8.3/datetime.getoffset.html
タイムゾーンのオフセットを返す 9357
« DateTimeInterface::getMicrosecond DateTimeInterface::getTimestamp » PHP Manual DateTimeInterface タイムゾーンのオフセットを返す 検索 DateTimeInterface::getOffset DateTimeImmutable::getOffset DateTime::getOffset date_offset_get (PHP 5 >= 5 ... 戻り値 成功した場合には UTC からのタイムゾーンオフセット秒数、 例 例1 DateTime::getOffset() の例 オブジェクト指向型 <?php $winter = new DateTimeImmutable ( '2010-12-21' , new DateTimeZone ( 'America/New_York' )); $summer = new DateTimeImmutable ( '2008 ... -06-21' , new DateTimeZone ( 'America/New_York' )); echo $winter -> getOffset () . "\n" ; echo $summer -> getOffset () . "\n" ; 上の例の出力は以下となります。 -18000 -14400 手続き型 <?php ... $winter = date_create ( '2010-12-21' , timezone_open ( 'America/New_York' )); $summer = date_create ( '2008-06-21' , timezone_open ...
https://man.mtool.work/php/8.3/datetime.getoffset.html
PREV 1 NEXT