« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 9 of about 9 for fromDateTime (0.002 sec.)
IntlCalendar::fromDateTime — DateTime オブジェクトまたは文字列から、IntlCalenda... 13948
IntlCalendar::fromDateTime (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a2) IntlCalendar::fromDateTime — DateTime オブジェクトまたは文字列から、IntlCalendar を作成する 説明 オブジェクト指向型 public static function IntlCalendar::fromDateTime ... 文字列を渡した場合、 DateTime のコンストラクタから伝播する形で、 例外がスローされる可能性があります。 例 例1 IntlCalendar::fromDateTime() <?php ini_set ( 'date.timezone' , 'Europe/Lisbon' ); //same as IntlCalendar::fromDateTime(new DateTime(...)) $cal1 = Int ... lCalendar :: fromDateTime ( '2013-02-28 00:01:02 Europe/Berlin' , 'de_DE' ); //Note the timezone is Europe/Berlin, not the default Europe/Lisbon ech ...
https://man.mtool.work/php/8.3/intlcalendar.fromdatetime.html
IntlCalendar::fieldDifference — 指定された時刻と、このオブジェクトの時刻の差を... 9239
IntlCalendar::fieldDifference (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::fieldDifference — 指定された時刻と、このオブジェクトの時刻の差を計算する 説明 オブジェクト指向型 public function IntlCalendar::fieldDifference ( flo ... <?php ini_set ( 'date.timezone' , 'Europe/Lisbon' ); ini_set ( 'intl.default_locale' , 'fr_FR' ); $cal1 = IntlCalendar :: fromDateTime ( '2012-02-29 09:00:11' ); $cal2 = IntlCalendar :: fromDateTime ( '2013-03-01 09:19:29' ); $time = $cal2 -> getTime (); ec ...
https://man.mtool.work/php/8.3/intlcalendar.fielddifference.html
IntlCalendar::getTimeZone — オブジェクトのタイムゾーンを取得する | PHP 8.3 8574
IntlCalendar::getTimeZone (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::getTimeZone — オブジェクトのタイムゾーンを取得する 説明 オブジェクト指向型 public function IntlCalendar::getTimeZone (): IntlTimeZone | false 手続き型 f ... rint_r ( $cal -> getTimeZone ()); $cal -> setTimeZone ( 'UTC' ); print_r ( $cal -> getTimeZone ()); $cal = IntlCalendar :: fromDateTime ( '2012-01-01 00:00:00 GMT+03:33' ); print_r ( $cal -> getTimeZone ()); 上の例の出力は以下となります。 IntlTimeZone Object ...
https://man.mtool.work/php/8.3/intlcalendar.gettimezone.html
IntlCalendar::toDateTime — IntlCalendar を DateTime オブジェクトに変換する | PH... 8448
IntlCalendar::toDateTime (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a2) IntlCalendar::toDateTime — IntlCalendar を DateTime オブジェクトに変換する 説明 オブジェクト指向型 public function IntlCalendar::toDateTime (): DateTime | false 手続き ... ます。 DateTime Object ( [date] => 2013-07-02 00:29:13 [timezone_type] => 3 [timezone] => Europe/Lisbon ) 参考 IntlCalendar::fromDateTime() - DateTime オブジェクトまたは文字列から、IntlCalendar を作成する IntlCalendar::getTime() - このオブジェクトが表す時刻を取 ...
https://man.mtool.work/php/8.3/intlcalendar.todatetime.html
IntlCalendar::getActualMaximum — オブジェクトの現在時刻を考慮して、フィールドの... 8340
IntlCalendar::getActualMaximum (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::getActualMaximum — オブジェクトの現在時刻を考慮して、フィールドの最大値を取得する 説明 オブジェクト指向型 public function IntlCalendar::getActualMa ... 返します 例 例1 IntlCalendar::getActualMaximum() <?php ini_set ( 'date.timezone' , 'Europe/Lisbon' ); $cal = IntlCalendar :: fromDateTime ( '2013-02-15' ); var_dump ( $cal -> getActualMaximum ( IntlCalendar :: FIELD_DAY_OF_MONTH )); //28 $cal -> add ( IntlCale ...
https://man.mtool.work/php/8.3/intlcalendar.getactualmaximum.html
IntlCalendar クラス | PHP 8.3 8232
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 ... endar $other ): bool public function fieldDifference ( float $timestamp , int $field ): int | false public static function fromDateTime ( DateTime | string $datetime , ? string $locale = null ): ? IntlCalendar public function get ( int $field ): int | false ... ェクトの時刻を比較する IntlCalendar::fieldDifference — 指定された時刻と、このオブジェクトの時刻の差を計算する IntlCalendar::fromDateTime — DateTime オブジェクトまたは文字列から、IntlCalendar を作成する IntlCalendar::get — フィールドの値を取得する IntlCalendar ...
https://man.mtool.work/php/8.3/class.intlcalendar.html
IntlDateFormatter::formatObject — オブジェクトの書式を設定する | PHP 8.3 8232
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 ... デフォルトのロケールは、この ini 設定から取得します */ ini_set ( 'intl.default_locale' , 'fr_FR' ); $cal = IntlCalendar :: fromDateTime ( "2013-06-06 17:05:06 Europe/Dublin" ); echo "default:\n\t" , IntlDateFormatter :: formatObject ( $cal ), "\n" ; echo "lo ...
https://man.mtool.work/php/8.3/intldateformatter.formatobject.html
IntlGregorianCalendar クラス | PHP 8.3 8124
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 ... ) public static function createFromDate ( int $year , int $month , int $dayOfMonth ): static public static function createFromDateTime ( int $year , int $month , int $dayOfMonth , int $hour , int $minute , ? int $second = null ): static public function getG ... function IntlCalendar::fieldDifference ( float $timestamp , int $field ): int | false public static function IntlCalendar::fromDateTime ( DateTime | string $datetime , ? string $locale = null ): ? IntlCalendar public function IntlCalendar::get ( int $field ) ... endar::createFromDate — 日付の情報から、新しい IntlGregorianCalendar のインスタンスを作成する IntlGregorianCalendar::createFromDateTime — 日付と時刻の値から、新しい IntlGregorianCalendar のインスタンスを作成する IntlGregorianCalendar::getGregorianChange — グ ...
https://man.mtool.work/php/8.3/class.intlgregoriancalendar.html
国際化関数 | PHP 8.3 7675
国際化関数 はじめに 国際化用拡張モジュール (これ以降では Intl と略します) は » ICU ライブラリのラッパーです。 PHP プログラマが、ロケール関連のさまざまな操作を行えるようにします。 フォーマット、音訳、エンコード変換、カレンダーの処理、 » UCA ... ェクトの時刻を比較する IntlCalendar::fieldDifference — 指定された時刻と、このオブジェクトの時刻の差を計算する IntlCalendar::fromDateTime — DateTime オブジェクトまたは文字列から、IntlCalendar を作成する IntlCalendar::get — フィールドの値を取得する IntlCalendar ... endar::createFromDate — 日付の情報から、新しい IntlGregorianCalendar のインスタンスを作成する IntlGregorianCalendar::createFromDateTime — 日付と時刻の値から、新しい IntlGregorianCalendar のインスタンスを作成する IntlGregorianCalendar::getGregorianChange — グ ... ::createTimeZoneIDEnumeration — 指定されたフィルタ条件を反映した、システムタイムゾーンのイテレータを取得する IntlTimeZone::fromDateTimeZone — DateTimeZone からタイムゾーンオブジェクトを作る IntlTimeZone::getCanonicalID — 指定したタイムゾーン ID の、正式なシス ...
https://man.mtool.work/php/8.3/book.intl.html
PREV 1 NEXT