Results of 1 - 10 of about 18 for formatObject (0.003 sec.)
- IntlDateFormatter::formatObject — オブジェクトの書式を設定する | PHP 8.3 13812
- IntlDateFormatter::formatObject datefmt_format_object (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL intl >= 3.0.0) IntlDateFormatter::formatObject -- datefmt_format_object — オブジェクトの書式を設定する 説明 オブジェクト指向型 public static function
... IntlDateFormatter::formatObject ( IntlCalendar | DateTimeInterface $datetime , array | int | string | null $format = null , ? string $locale = null ): str ... デフォルトのロケール を使います。 戻り値 結果を文字列で返します。失敗した場合に 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
- IntlCalendar::isLenient — 日付と時刻の解釈を「緩いモード」で行うかを取得する | ... 10483
- IntlCalendar::isLenient (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::isLenient — 日付と時刻の解釈を「緩いモード」で行うかを取得する 説明 オブジェクト指向型 public function IntlCalendar::isLenient (): bool 手続き型 function
... 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
- IntlCalendar::getMinimalDaysInFirstWeek — 特定の年や月における、最初の週の日数... 10363
- IntlCalendar::getMinimalDaysInFirstWeek (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::getMinimalDaysInFirstWeek — 特定の年や月における、最初の週の日数の最小値を返す 説明 オブジェクト指向型 public function IntlCalendar::getMi
... 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
- IntlCalendar::setTime — エポックからのカレンダーの時刻をミリ秒単位で設定する | ... 9282
- IntlCalendar::setTime (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::setTime — エポックからのカレンダーの時刻をミリ秒単位で設定する 説明 オブジェクト指向型 public function IntlCalendar::setTime ( float $timestamp ): bool 手続
... 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
- IntlCalendar::add — フィールドに (符号付きの) 一定量の時間を追加する | PHP 8.3 9042
- IntlCalendar::add (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::add — フィールドに (符号付きの) 一定量の時間を追加する 説明 オブジェクト指向型 public function IntlCalendar::add ( int $field , int $value ): bool 手続き型 func
... 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 他のマニ ...
-
https://man.mtool.work/php/8.3/intlcalendar.add.html
- IntlCalendar::clear — 単一または全てのフィールドをクリアする | PHP 8.3 9042
- IntlCalendar::clear (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::clear — 単一または全てのフィールドをクリアする 説明 オブジェクト指向型 public function IntlCalendar::clear ( ? int $field = null ): true 手続き型 function int
... 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
- IntlCalendar::setTimeZone — このカレンダーで使うタイムゾーンを設定する | PHP 8.... 8922
- IntlCalendar::setTimeZone (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::setTimeZone — このカレンダーで使うタイムゾーンを設定する 説明 オブジェクト指向型 public function IntlCalendar::setTimeZone ( IntlTimeZone | DateTimeZone
... t_locale' , 'es_ES' ); $cal = new IntlGregorianCalendar ( 2013 , 5 /* May */ , 1 , 12 , 0 , 0 ); echo IntlDateFormatter :: formatObject ( $cal , IntlDateFormatter :: FULL ), "\n" ; echo "(instant { $cal -> getTime ()} )\n" ; $cal -> setTimeZone ( IntlTimeZon ... e :: getGMT ()); echo IntlDateFormatter :: formatObject ( $cal , IntlDateFormatter :: FULL ), "\n" ; echo "(instant { $cal -> getTime ()} )\n" ; $cal -> setTimeZone ( 'GMT+03:33' ... ); echo IntlDateFormatter :: formatObject ( $cal , IntlDateFormatter :: FULL ), "\n" ; echo "(instant { $cal -> getTime ()} )\n" ; 上の例の出力は以下となります。 sá ...
-
https://man.mtool.work/php/8.3/intlcalendar.settimezone.html
- IntlCalendar::createInstance — 新しい IntlCalendar を作成する | PHP 8.3 8682
- IntlCalendar::createInstance (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::createInstance — 新しい IntlCalendar を作成する 説明 オブジェクト指向型 public static function IntlCalendar::createInstance ( IntlTimeZone | DateTime
... ' ); $cal = IntlCalendar :: createInstance (); echo "No arguments\n" ; var_dump ( get_class ( $cal ), IntlDateFormatter :: formatObject ( $cal , IntlDateFormatter :: FULL )); echo "\n" ; echo "Explicit timezone\n" ; $cal = IntlCalendar :: createInstance ( In ... tlTimeZone :: getGMT ()); var_dump ( get_class ( $cal ), IntlDateFormatter :: formatObject ( $cal , IntlDateFormatter :: FULL )); echo "\n" ; echo "Explicit locale (with calendar)\n" ; $cal = IntlCalendar :: creat ... eInstance ( NULL , 'es_ES@calendar=persian' ); var_dump ( get_class ( $cal ), IntlDateFormatter :: formatObject ( $cal , IntlDateFormatter :: FULL )); 上の例の出力は以下となります。 No arguments string(21) "IntlGregorianCalendar" stri ...
-
https://man.mtool.work/php/8.3/intlcalendar.createinstance.html
- IntlDatePatternGenerator::getBestPattern — もっとも適合した 日付/時刻 のフォー... 8682
- IntlDatePatternGenerator::getBestPattern (PHP 8 >= 8.1.0) IntlDatePatternGenerator::getBestPattern — もっとも適合した 日付/時刻 のフォーマットを決定する 説明 public function IntlDatePatternGenerator::getBestPattern ( string $skeleton ): str
... rnGenerator ( 'de_DE' ); $pattern = $patternGenerator -> getBestPattern ( $skeleton ); echo 'de: ' , \IntlDateFormatter :: formatObject ( $today , $pattern , 'de_DE' ), "\n" ; $patternGenerator = new \IntlDatePatternGenerator ( 'en_US' ); $pattern = $pattern ... Generator -> getBestPattern ( $skeleton ); echo 'en: ' , \IntlDateFormatter :: formatObject ( $today , $pattern , 'en_US' ); ?> 上の例の出力は以下となります。 de: 24.04.2021 en: 04/24/2021 他のマニュアルの関連ページ ...
-
https://man.mtool.work/php/8.3/intldatepatterngenerator.getbestpattern.html
- IntlCalendar::setFirstDayOfWeek — 週の始まりと見なされる曜日を設定する | PHP 8.... 8218
- IntlCalendar::setFirstDayOfWeek (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::setFirstDayOfWeek — 週の始まりと見なされる曜日を設定する 説明 オブジェクト指向型 public function IntlCalendar::setFirstDayOfWeek ( int $dayOfWeek
... 2013 , 5 /* June */ , 30 ); // A Sunday var_dump ( $cal -> getFirstDayOfWeek ()); // 2 (Monday) echo IntlDateFormatter :: formatObject ( $cal , <<<EOD 'local day of week: 'cc' week of month : 'W' week of year : 'ww EOD ), "\n" ; $cal -> setFirstDayOfWeek ( ... IntlCalendar :: DOW_SUNDAY ); echo IntlDateFormatter :: formatObject ( $cal , <<<EOD 'local day of week: 'cc' week of month : 'W' week of year : 'ww EOD ), "\n" ; 上の例の出力は以下となります ...
-
https://man.mtool.work/php/8.3/intlcalendar.setfirstdayofweek.html