« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 176 for DateTimeImmutable (0.002 sec.)
DateTimeImmutable クラス 8408
« DateTime::sub DateTimeImmutable::add » PHP Manual Date/Time DateTimeImmutable クラス 検索 DateTimeImmutable クラス (PHP 5 >= 5.5.0, PHP 7, PHP 8) はじめに 日付と時刻を表現します。 このクラスは DateTime と同じ振る舞いをします。 但し、 Date ... Time::modify() のような、 状態を変更して新しいオブジェクトを返すメソッドが呼び出された時を除きます。 クラス概要 class DateTimeImmutable implements DateTimeInterface { /* 継承した定数 */ public const string DateTimeInterface::ATOM = "Y-m-d\\TH:i:sP" ; public ... / public function __construct ( string $datetime = "now" , ? DateTimeZone $timezone = null ) #[ \NoDiscard ( message : "as DateTimeImmutable::add() does not modify the object itself" )] public function add ( DateInterval $interval ): DateTimeImmutable public stat ... ic function createFromFormat ( string $format , string $datetime , ? DateTimeZone $timezone = null ): DateTimeImmutable | false public static function createFromInterface ( DateTimeInterface $object ): DateTimeImmutable public static function ...
https://man.mtool.work/php/8.3/class.datetimeimmutable.html
DateTimeImmutable クラス 8408
« DateTime::sub DateTimeImmutable::add » PHP Manual Date/Time DateTimeImmutable クラス 検索 DateTimeImmutable クラス (PHP 5 >= 5.5.0, PHP 7, PHP 8) はじめに 日付と時刻を表現します。 このクラスは DateTime と同じ振る舞いをします。 但し、 Date ... Time::modify() のような、 状態を変更して新しいオブジェクトを返すメソッドが呼び出された時を除きます。 クラス概要 class DateTimeImmutable implements DateTimeInterface { /* 継承した定数 */ public const string DateTimeInterface::ATOM = "Y-m-d\\TH:i:sP" ; public ... / public function __construct ( string $datetime = "now" , ? DateTimeZone $timezone = null ) #[ \NoDiscard ( message : "as DateTimeImmutable::add() does not modify the object itself" )] public function add ( DateInterval $interval ): DateTimeImmutable public stat ... ic function createFromFormat ( string $format , string $datetime , ? DateTimeZone $timezone = null ): DateTimeImmutable | false public static function createFromInterface ( DateTimeInterface $object ): DateTimeImmutable public static function ...
https://man.mtool.work/php/8.3/class.datetimeimmutable.html
タイムスタンプを変更した新しいオブジェクトを作る 7805
« DateTimeImmutable::getLastErrors DateTimeImmutable::__set_state » PHP Manual DateTimeImmutable タイムスタンプを変更した新しいオブジェクトを作る 検索 DateTimeImmutable::modify (PHP 5 >= 5.5.0, PHP 7, PHP 8) DateTimeImmutable::modify — タイ ... ムスタンプを変更した新しいオブジェクトを作る 説明 #[ \NoDiscard ( message : "as DateTimeImmutable::modify() does not modify the object itself" )] public function DateTimeImmutable::modify ( string $modifier ): DateTimeIm ... mutable タイムスタンプを変更した新しい DateTimeImmutable オブジェクトを作ります。 元のオブジェクトは変更されません。 パラメータ modifier 日付/時刻 文字列。有効な書式については 日付 ... と時刻の書式 で説明しています。 戻り値 成功時に DateTimeImmutable を返します。 手続き型 の場合は、失敗したときに false を返します。 エラー / 例外 無効な日付/時刻の文字列が渡された場合、 Da ...
https://man.mtool.work/php/8.3/datetimeimmutable.modify.html
タイムスタンプを変更した新しいオブジェクトを作る 7805
« DateTimeImmutable::getLastErrors DateTimeImmutable::__set_state » PHP Manual DateTimeImmutable タイムスタンプを変更した新しいオブジェクトを作る 検索 DateTimeImmutable::modify (PHP 5 >= 5.5.0, PHP 7, PHP 8) DateTimeImmutable::modify — タイ ... ムスタンプを変更した新しいオブジェクトを作る 説明 #[ \NoDiscard ( message : "as DateTimeImmutable::modify() does not modify the object itself" )] public function DateTimeImmutable::modify ( string $modifier ): DateTimeIm ... mutable タイムスタンプを変更した新しい DateTimeImmutable オブジェクトを作ります。 元のオブジェクトは変更されません。 パラメータ modifier 日付/時刻 文字列。有効な書式については 日付 ... と時刻の書式 で説明しています。 戻り値 成功時に DateTimeImmutable を返します。 手続き型 の場合は、失敗したときに false を返します。 エラー / 例外 無効な日付/時刻の文字列が渡された場合、 Da ...
https://man.mtool.work/php/8.3/datetimeimmutable.modify.html
指定された DateTimeInterface オブジェクトをカプセル化した、新しい DateTimeImmuta... 7783
« DateTimeImmutable::createFromFormat DateTimeImmutable::createFromMutable » PHP Manual DateTimeImmutable 指定された DateTimeInterface オブジェクトをカプセル化した、新しい DateTimeImmutable オブジェクトを返す 検索 DateTimeImmutable::createF ... romInterface (PHP 8) DateTimeImmutable::createFromInterface — 指定された DateTimeInterface オブジェクトをカプセル化した、新しい DateTimeImmutable オブジェクトを返 ... す 説明 public static function DateTimeImmutable::createFromInterface ( DateTimeInterface $object ): DateTimeImmutable パラメータ object 変更できないバージョンに変換する D ... ateTimeInterface オブジェクト。 このオブジェクトは変更されませんが、 同じ日付、時刻、タイムゾーンの情報が入った新しい DateTimeImmutable オブジェクトが作成されます。 戻り値 新しい DateTimeImmutable クラスのインスタンスを返します。 例 例1 DateTimeImmutable オブ ...
https://man.mtool.work/php/8.3/datetimeimmutable.createfrominterface.html
指定された DateTimeInterface オブジェクトをカプセル化した、新しい DateTimeImmuta... 7783
« DateTimeImmutable::createFromFormat DateTimeImmutable::createFromMutable » PHP Manual DateTimeImmutable 指定された DateTimeInterface オブジェクトをカプセル化した、新しい DateTimeImmutable オブジェクトを返す 検索 DateTimeImmutable::createF ... romInterface (PHP 8) DateTimeImmutable::createFromInterface — 指定された DateTimeInterface オブジェクトをカプセル化した、新しい DateTimeImmutable オブジェクトを返 ... す 説明 public static function DateTimeImmutable::createFromInterface ( DateTimeInterface $object ): DateTimeImmutable パラメータ object 変更できないバージョンに変換する D ... ateTimeInterface オブジェクト。 このオブジェクトは変更されませんが、 同じ日付、時刻、タイムゾーンの情報が入った新しい DateTimeImmutable オブジェクトが作成されます。 戻り値 新しい DateTimeImmutable クラスのインスタンスを返します。 例 例1 DateTimeImmutable オブ ...
https://man.mtool.work/php/8.3/datetimeimmutable.createfrominterface.html
年月日時分秒の値を加え、新しいオブジェクトを返す 7727
« DateTimeImmutable DateTimeImmutable::__construct » PHP Manual DateTimeImmutable 年月日時分秒の値を加え、新しいオブジェクトを返す 検索 DateTimeImmutable::add (PHP 5 >= 5.5.0, PHP 7, PHP 8) DateTimeImmutable::add — 年月日時分秒の値を加え、新 ... しいオブジェクトを返す 説明 #[ \NoDiscard ( message : "as DateTimeImmutable::add() does not modify the object itself" )] public function DateTimeImmutable::add ( DateInterval $interval ): DateTimeIm ... mutable 新しい DateTimeImmutable オブジェクトを作成し、 指定された DateInterval をこれに加え、 新しい値を返します。 パラメータ interval DateInterval オブジ ... ェクト。 戻り値 変更されたデータを持つ、新しい DateTimeImmutable オブジェクトを返します。 例 例1 DateTimeImmutable::add() の例 オブジェクト指向型 <?php $date = new DateTimeImmutable ( '20 ...
https://man.mtool.work/php/8.3/datetimeimmutable.add.html
年月日時分秒の値を加え、新しいオブジェクトを返す 7727
« DateTimeImmutable DateTimeImmutable::__construct » PHP Manual DateTimeImmutable 年月日時分秒の値を加え、新しいオブジェクトを返す 検索 DateTimeImmutable::add (PHP 5 >= 5.5.0, PHP 7, PHP 8) DateTimeImmutable::add — 年月日時分秒の値を加え、新 ... しいオブジェクトを返す 説明 #[ \NoDiscard ( message : "as DateTimeImmutable::add() does not modify the object itself" )] public function DateTimeImmutable::add ( DateInterval $interval ): DateTimeIm ... mutable 新しい DateTimeImmutable オブジェクトを作成し、 指定された DateInterval をこれに加え、 新しい値を返します。 パラメータ interval DateInterval オブジ ... ェクト。 戻り値 変更されたデータを持つ、新しい DateTimeImmutable オブジェクトを返します。 例 例1 DateTimeImmutable::add() の例 オブジェクト指向型 <?php $date = new DateTimeImmutable ( '20 ...
https://man.mtool.work/php/8.3/datetimeimmutable.add.html
日付を設定する 7626
« DateTimeImmutable::__set_state DateTimeImmutable::setISODate » PHP Manual DateTimeImmutable 日付を設定する 検索 DateTimeImmutable::setDate (PHP 5 >= 5.5.0, PHP 7, PHP 8) DateTimeImmutable::setDate — 日付を設定する 説明 #[ \NoDiscard ( mes ... sage : "as DateTimeImmutable::setDate() does not modify the object itself" )] public function DateTimeImmutable::setDate ( int $year , int $month , int ... $day ): DateTimeImmutable DateTimeImmutable オブジェクトの現在の日付を、指定された日付にします。 指定した日付を設定した、新しい DateTimeImmutable オ ... オブジェクトを変更します。 year その日付の年。 month その日付の月。 day その日付の日。 戻り値 変更されたデータを持つ、新しい DateTimeImmutable オブジェクトを返します。 例 例1 DateTimeImmutable::setDate() の例 オブジェクト指向型 <?php $date = new DateTimeImmutable ( ...
https://man.mtool.work/php/8.3/datetimeimmutable.setdate.html
Unix タイムスタンプを用いて日付と時刻を設定する 7626
« DateTimeImmutable::setTime DateTimeImmutable::setTimezone » PHP Manual DateTimeImmutable Unix タイムスタンプを用いて日付と時刻を設定する 検索 DateTimeImmutable::setTimestamp (PHP 5 >= 5.5.0, PHP 7, PHP 8) DateTimeImmutable::setTimestamp — ... Unix タイムスタンプを用いて日付と時刻を設定する 説明 #[ \NoDiscard ( message : "as DateTimeImmutable::setTimestamp() does not modify the object itself" )] public function DateTimeImmutable::setTimestamp ( int $timestamp ): ... DateTimeImmutable Unix タイムスタンプを用いて日付と時刻を設定し、 古いものから新しい DateTimeImmutable オブジェクトを作成して返します。 パラメータ timestamp 日付を表す Unix タイムスタンプ。 DateTimeImmutable::modify() を @ フ ... ォーマットと共に使うと、 int の範囲外のタイムスタンプを設定できます。 戻り値 変更されたデータを持つ、新しい DateTimeImmutable オブジェクトを返します。 例 例1 DateTimeImmutable::setTimestamp() の例 オブジェクト指向型 <?php $date = new DateTimeImmuta ...
https://man.mtool.work/php/8.3/datetimeimmutable.settimestamp.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT