« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 40 for formatObject (0.002 sec.)
オブジェクトの書式を設定する 12138
« IntlDateFormatter::format IntlDateFormatter::getCalendar » PHP Manual IntlDateFormatter オブジェクトの書式を設定する 検索 IntlDateFormatter::formatObject datefmt_format_object (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL intl >= 3.0.0) IntlDateFor ... matter::formatObject -- datefmt_format_object — オブジェクトの書式を設定する 説明 オブジェクト指向型 public static function IntlDateFormatter:: ... デフォルトのロケール を使います。 戻り値 結果を文字列で返します。失敗した場合に false を返します。 例 例1 IntlDateFormatter::formatObject() の例 <?php /* デフォルトのタイムゾーンは利用せず、オブジェクトのタイムゾーンを取得します */ ini_set ( 'date.timezone' , ... ); $cal = IntlCalendar :: fromDateTime ( "2013-06-06 17:05:06 Europe/Dublin" ); echo "default:\n\t" , IntlDateFormatter :: formatObject ( $cal ), "\n" ; echo "long \$format (full):\n\t" , IntlDateFormatter :: formatObject ( $cal , IntlDateFormatter :: FULL ) ...
https://man.mtool.work/php/8.3/intldateformatter.formatobject.html
オブジェクトの書式を設定する 12138
« IntlDateFormatter::format IntlDateFormatter::getCalendar » PHP Manual IntlDateFormatter オブジェクトの書式を設定する 検索 IntlDateFormatter::formatObject datefmt_format_object (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL intl >= 3.0.0) IntlDateFor ... matter::formatObject -- datefmt_format_object — オブジェクトの書式を設定する 説明 オブジェクト指向型 public static function IntlDateFormatter:: ... デフォルトのロケール を使います。 戻り値 結果を文字列で返します。失敗した場合に false を返します。 例 例1 IntlDateFormatter::formatObject() の例 <?php /* デフォルトのタイムゾーンは利用せず、オブジェクトのタイムゾーンを取得します */ ini_set ( 'date.timezone' , ... ); $cal = IntlCalendar :: fromDateTime ( "2013-06-06 17:05:06 Europe/Dublin" ); echo "default:\n\t" , IntlDateFormatter :: formatObject ( $cal ), "\n" ; echo "long \$format (full):\n\t" , IntlDateFormatter :: formatObject ( $cal , IntlDateFormatter :: FULL ) ...
https://man.mtool.work/php/8.3/intldateformatter.formatobject.html
特定の年や月における、最初の週の日数の最小値を返す 9735
« IntlCalendar::getMaximum IntlCalendar::getMinimum » PHP Manual IntlCalendar 特定の年や月における、最初の週の日数の最小値を返す 検索 IntlCalendar::getMinimalDaysInFirstWeek (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::getM ... ault_locale' , 'en_US' ); $cal = new IntlGregorianCalendar ( 2013 , 0 /* January */ , 2 ); var_dump ( IntlDateFormatter :: formatObject ( $cal , 'cccc' )); // Wednesday var_dump ( $cal -> getMinimalDaysInFirstWeek (), // 1 $cal -> getFirstDayofWeek ()); // 1 ... (Sunday) // Week 1 of 2013 var_dump ( IntlDateFormatter :: formatObject ( $cal , "'Week 'w' of 'Y" )); $cal -> setMinimalDaysInFirstWeek ( 4 ); // Still Week 1 of 2013 (1st week has 5 days in th ... e new year) var_dump ( IntlDateFormatter :: formatObject ( $cal , "'Week 'w' of 'Y" )); $cal -> setMinimalDaysInFirstWeek ( 6 ); // Week 53 of 2012 var_dump ( IntlDateFormatter :: ...
https://man.mtool.work/php/8.3/intlcalendar.getminimaldaysinfirstweek.html
日付と時刻の解釈を「緩いモード」で行うかを取得する 9735
« IntlCalendar::isEquivalentTo IntlCalendar::isSet » PHP Manual IntlCalendar 日付と時刻の解釈を「緩いモード」で行うかを取得する 検索 IntlCalendar::isLenient (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::isLenient — 日付と時刻 ... ntl.use_exceptions' , '1' ); $cal = new IntlGregorianCalendar ( 2013 , 6 /* July */ , 1 ); var_dump ( IntlDateFormatter :: formatObject ( $cal ), // 01/07/2013, 00:00:00 $cal -> isLenient ()); // true $cal -> set ( IntlCalendar :: FIELD_DAY_OF_MONTH , 33 ); ... var_dump ( IntlDateFormatter :: formatObject ( $cal )); // 02/08/2013, 00:00:00 $cal -> setLenient ( false ); var_dump ( $cal -> isLenient ()); // false $cal -> set ( ... IntlCalendar :: FIELD_DAY_OF_MONTH , 33 ); var_dump ( IntlDateFormatter :: formatObject ( $cal )); // error 上の例の出力は以下となります。 string(20) "01/07/2013, 00:00:00" bool(true) string(20) "02/08/2013, 00 ...
https://man.mtool.work/php/8.3/intlcalendar.islenient.html
特定の年や月における、最初の週の日数の最小値を返す 9642
« IntlCalendar::getMaximum IntlCalendar::getMinimum » PHP Manual IntlCalendar 特定の年や月における、最初の週の日数の最小値を返す 検索 IntlCalendar::getMinimalDaysInFirstWeek (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::getM ... ault_locale' , 'en_US' ); $cal = new IntlGregorianCalendar ( 2013 , 0 /* January */ , 2 ); var_dump ( IntlDateFormatter :: formatObject ( $cal , 'cccc' )); // Wednesday var_dump ( $cal -> getMinimalDaysInFirstWeek (), // 1 $cal -> getFirstDayofWeek ()); // 1 ... (Sunday) // Week 1 of 2013 var_dump ( IntlDateFormatter :: formatObject ( $cal , "'Week 'w' of 'Y" )); $cal -> setMinimalDaysInFirstWeek ( 4 ); // Still Week 1 of 2013 (1st week has 5 days in th ... e new year) var_dump ( IntlDateFormatter :: formatObject ( $cal , "'Week 'w' of 'Y" )); $cal -> setMinimalDaysInFirstWeek ( 6 ); // Week 53 of 2012 var_dump ( IntlDateFormatter :: ...
https://man.mtool.work/php/8.3/intlcalendar.getminimaldaysinfirstweek.html
日付と時刻の解釈を「緩いモード」で行うかを取得する 9642
« IntlCalendar::isEquivalentTo IntlCalendar::isSet » PHP Manual IntlCalendar 日付と時刻の解釈を「緩いモード」で行うかを取得する 検索 IntlCalendar::isLenient (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::isLenient — 日付と時刻 ... ntl.use_exceptions' , '1' ); $cal = new IntlGregorianCalendar ( 2013 , 6 /* July */ , 1 ); var_dump ( IntlDateFormatter :: formatObject ( $cal ), // 01/07/2013, 00:00:00 $cal -> isLenient ()); // true $cal -> set ( IntlCalendar :: FIELD_DAY_OF_MONTH , 33 ); ... var_dump ( IntlDateFormatter :: formatObject ( $cal )); // 02/08/2013, 00:00:00 $cal -> setLenient ( false ); var_dump ( $cal -> isLenient ()); // false $cal -> set ( ... IntlCalendar :: FIELD_DAY_OF_MONTH , 33 ); var_dump ( IntlDateFormatter :: formatObject ( $cal )); // error 上の例の出力は以下となります。 string(20) "01/07/2013, 00:00:00" bool(true) string(20) "02/08/2013, 00 ...
https://man.mtool.work/php/8.3/intlcalendar.islenient.html
エポックからのカレンダーの時刻をミリ秒単位で設定する 8908
« IntlCalendar::setSkippedWallTimeOption IntlCalendar::setTimeZone » PHP Manual IntlCalendar エポックからのカレンダーの時刻をミリ秒単位で設定する 検索 IntlCalendar::setTime (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::setTi ... t_locale' , 'fr_FR' ); $cal = new IntlGregorianCalendar ( 2013 , 5 /* May */ , 1 , 12 , 0 , 0 ); echo IntlDateFormatter :: formatObject ( $cal , IntlDateFormatter :: FULL ), "\n" ; /* In Europe/Lisbon, on 2013-10-27 at 0200, the clock goes back one hour and ... ne from UTC+01 to UTC+00 */ $cal -> setTime ( strtotime ( '2013-10-27 00:30:00 UTC' ) * 1000. ); echo IntlDateFormatter :: formatObject ( $cal , IntlDateFormatter :: FULL ), "\n" ; $cal -> setTime ( strtotime ( '2013-10-27 01:30:00 UTC' ) * 1000. ); echo Int ... lDateFormatter :: formatObject ( $cal , IntlDateFormatter :: FULL ), "\n" ; 上の例の出力は以下となります。 samedi 1 juin 2013 12:00:00 heure avancée d'Eu ...
https://man.mtool.work/php/8.3/intlcalendar.settime.html
エポックからのカレンダーの時刻をミリ秒単位で設定する 8815
« IntlCalendar::setSkippedWallTimeOption IntlCalendar::setTimeZone » PHP Manual IntlCalendar エポックからのカレンダーの時刻をミリ秒単位で設定する 検索 IntlCalendar::setTime (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::setTi ... t_locale' , 'fr_FR' ); $cal = new IntlGregorianCalendar ( 2013 , 5 /* May */ , 1 , 12 , 0 , 0 ); echo IntlDateFormatter :: formatObject ( $cal , IntlDateFormatter :: FULL ), "\n" ; /* In Europe/Lisbon, on 2013-10-27 at 0200, the clock goes back one hour and ... ne from UTC+01 to UTC+00 */ $cal -> setTime ( strtotime ( '2013-10-27 00:30:00 UTC' ) * 1000. ); echo IntlDateFormatter :: formatObject ( $cal , IntlDateFormatter :: FULL ), "\n" ; $cal -> setTime ( strtotime ( '2013-10-27 01:30:00 UTC' ) * 1000. ); echo Int ... lDateFormatter :: formatObject ( $cal , IntlDateFormatter :: FULL ), "\n" ; 上の例の出力は以下となります。 samedi 1 juin 2013 12:00:00 heure avancée d'Eu ...
https://man.mtool.work/php/8.3/intlcalendar.settime.html
フィールドに (符号付きの) 一定量の時間を追加する 8534
« IntlCalendar IntlCalendar::after » PHP Manual IntlCalendar フィールドに (符号付きの) 一定量の時間を追加する 検索 IntlCalendar::add (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::add — フィールドに (符号付きの) 一定量の時間を ... t ( 'date.timezone' , 'UTC' ); $cal = new IntlGregorianCalendar ( 2012 , 0 /* January */ , 31 ); echo IntlDateFormatter :: formatObject ( $cal ), "\n" ; $cal -> add ( IntlCalendar :: FIELD_MONTH , 1 ); echo IntlDateFormatter :: formatObject ( $cal ), "\n" ; ... $cal -> add ( IntlCalendar :: FIELD_DAY_OF_MONTH , 1 ); echo IntlDateFormatter :: formatObject ( $cal ), "\n" ; 上の例の出力は以下となります。 31 janv. 2012 00:00:00 29 févr. 2012 00:00:00 1 mars 2012 00:00:00 関連キー ... ワード: IntlCalendar フィールド add cal 符号 場合 時間 int 一定量 field value echo IntlDateFormatter formatObject function bool calendar 1日 ini set ...
https://man.mtool.work/php/8.3/intlcalendar.add.html
単一または全てのフィールドをクリアする 8534
« IntlCalendar::before IntlCalendar::__construct » PHP Manual IntlCalendar 単一または全てのフィールドをクリアする 検索 IntlCalendar::clear (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::clear — 単一または全てのフィールドをクリ ... 15 ); echo "After GregorianCalendar creation\n" ; print_r ( getSetFields ( $cal )); echo "\n" ; echo IntlDateFormatter :: formatObject ( $cal ), "\n" ; echo "After the formatter requested the extended year\n" ; print_r ( getSetFields ( $cal )); echo "\n" ; ... ntlCalendar :: FIELD_YEAR ); echo "After the year has been cleared, the date stays the same\n" ; echo IntlDateFormatter :: formatObject ( $cal ), "\n" ; echo "because FIELD_EXTENDED_YEAR is still set\n" ; print_r ( getSetFields ( $cal )); echo "\n" ; var_dum ... D_YEAR )); echo "After the extended year has been cleared\n" ; print_r ( getSetFields ( $cal )); echo IntlDateFormatter :: formatObject ( $cal ), "\n" ; echo "\n" ; echo "After the fields are recalculated,\n" . " extended year is set again (to 1970)\n" ; pri ...
https://man.mtool.work/php/8.3/intlcalendar.clear.html
PREV 1 2 3 4 NEXT