« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 5 of about 5 for fieldDifference (0.002 sec.)
IntlCalendar::fieldDifference — 指定された時刻と、このオブジェクトの時刻の差を... 12795
IntlCalendar::fieldDifference (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::fieldDifference — 指定された時刻と、このオブジェクトの時刻の差を計算する 説明 オブジェクト指向型 public function IntlCalendar::fieldDifference ( flo ... れたフィールドに関連付けられた単位で、 (符号付きで)時刻の差を返します。 失敗した場合に false を返します 例 例1 IntlCalendar::fieldDifference() <?php ini_set ( 'date.timezone' , 'Europe/Lisbon' ); ini_set ( 'intl.default_locale' , 'fr_FR' ); $cal1 = IntlCalendar : ... " ; printf ( "The difference in time is %d year(s), %d month(s), " . "%d day(s), %d hour(s) and %d minute(s)\n" , $cal1 -> fieldDifference ( $time , IntlCalendar :: FIELD_YEAR ), $cal1 -> fieldDifference ( $time , IntlCalendar :: FIELD_MONTH ), $cal1 -> fieldDi ... fference ( $time , IntlCalendar :: FIELD_DAY_OF_MONTH ), $cal1 -> fieldDifference ( $time , IntlCalendar :: FIELD_HOUR_OF_DAY ), $cal1 -> fieldDifference ( $time , IntlCalendar :: FIELD_MINUTE ) ); //now ...
https://man.mtool.work/php/8.3/intlcalendar.fielddifference.html
IntlCalendar::getErrorCode — オブジェクトに関する直近のエラーコードを取得する |... 8843
IntlCalendar::getErrorCode intlcal_get_error_code (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::getErrorCode -- intlcal_get_error_code — オブジェクトに関する直近のエラーコードを取得する 説明 オブジェクト指向型 (method): publ ... GregorianCalendar ( 2012 , 1 , 29 ); var_dump ( $intlcal -> getErrorCode (), $intlcal -> getErrorMessage () ); $intlcal -> fieldDifference (- 1e100 , IntlCalendar :: FIELD_SECOND ); var_dump ( $intlcal -> getErrorCode (), $intlcal -> getErrorMessage () ); 上の例 ... の出力は以下となります。 int(0) string(12) "U_ZERO_ERROR" Warning: IntlCalendar::fieldDifference(): intlcal_field_difference: Call to ICU method has failed in /home/glopes/php/ws/example.php on line 10 int(1) string(81) ...
https://man.mtool.work/php/8.3/intlcalendar.geterrorcode.html
IntlCalendar クラス | PHP 8.3 8218
IntlCalendar クラス (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) はじめに クラス概要 class IntlCalendar { /* 定数 */ public const int FIELD_ERA ; public const int FIELD_YEAR ; public const int FIELD_MONTH ; public const int FIELD_WEEK_OF ... ne = null , ? string $locale = null ): ? IntlCalendar public function equals ( IntlCalendar $other ): bool public function fieldDifference ( float $timestamp , int $field ): int | false public static function fromDateTime ( DateTime | string $datetime , ? strin ... e — 新しい IntlCalendar を作成する IntlCalendar::equals — ふたつの IntlCalendar オブジェクトの時刻を比較する IntlCalendar::fieldDifference — 指定された時刻と、このオブジェクトの時刻の差を計算する IntlCalendar::fromDateTime — DateTime オブジェクトまたは文字列から ...
https://man.mtool.work/php/8.3/class.intlcalendar.html
IntlGregorianCalendar クラス | PHP 8.3 8162
IntlGregorianCalendar クラス (PHP 5 >= 5.5.0, PHP 7, PHP 8) はじめに クラス概要 class IntlGregorianCalendar extends IntlCalendar { /* 継承した定数 */ public const int IntlCalendar::FIELD_ERA ; public const int IntlCalendar::FIELD_YEAR ; pub ... = null ): ? IntlCalendar public function IntlCalendar::equals ( IntlCalendar $other ): bool public function IntlCalendar::fieldDifference ( float $timestamp , int $field ): int | false public static function IntlCalendar::fromDateTime ( DateTime | string $date ...
https://man.mtool.work/php/8.3/class.intlgregoriancalendar.html
国際化関数 | PHP 8.3 7887
国際化関数 はじめに 国際化用拡張モジュール (これ以降では Intl と略します) は » ICU ライブラリのラッパーです。 PHP プログラマが、ロケール関連のさまざまな操作を行えるようにします。 フォーマット、音訳、エンコード変換、カレンダーの処理、 » UCA ... e — 新しい IntlCalendar を作成する IntlCalendar::equals — ふたつの IntlCalendar オブジェクトの時刻を比較する IntlCalendar::fieldDifference — 指定された時刻と、このオブジェクトの時刻の差を計算する IntlCalendar::fromDateTime — DateTime オブジェクトまたは文字列から ...
https://man.mtool.work/php/8.3/book.intl.html
PREV 1 NEXT