« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 28 for 日時 (0.001 sec.)
stat — ファイルに関する情報を取得する | PHP 8.3 12076
stat (PHP 4, PHP 5, PHP 7, PHP 8) stat — ファイルに関する情報を取得する 説明 function stat ( string $filename ): array | false filename で指定されたファイルに ついての統計情報を取得します。 filename がシンボリックリンクの場合、 シンボリック ... でした。 例 例1 stat() の例 <?php /* ファイルの状態を取得します */ $stat = stat ( 'C:\php\php.exe' ); /* * ファイルのアクセス日時を表示します。 * これは fileatime() をコールするのと同じです */ echo 'アクセス日時: ' . $stat [ 'atime' ]; /* * ファイルの更 ... 新日時を表示します。 * これは filemtime() をコールするのと同じです */ echo '更新日時: ' . $stat [ 'mtime' ]; /* デバイス番号を表示 ... hp\php.exe' ); /* 情報の取得に失敗した? */ if (! $stat ) { echo 'stat() のコールに失敗しました...' ; } else { /* * アクセス日時を、現在のアクセス日時の * 一週間後に設定します */ $atime = $stat [ 'atime' ] + 604800 ; /* ファイルを作成します */ if (! to ...
https://man.mtool.work/php/8.3/function.stat.html
date_sub — DateTime::sub() | PHP 8.3 11880
date_sub (PHP 5 >= 5.3.0, PHP 7, PHP 8) date_sub — DateTime::sub() のエイリアス 説明 この関数は次の関数のエイリアスです。 DateTime::sub() 参考 DateTimeImmutable::sub() - 年月日時分秒の値を引く DateTime::sub() - 年月日時分秒の値を DateTime オ ...
https://man.mtool.work/php/8.3/function.date-sub.html
DateTimeImmutable::__construct — 新しい DateTimeImmutable オブジェクトを返す | ... 10667
DateTimeImmutable::__construct date_create_immutable (PHP 5 >= 5.5.0, PHP 7, PHP 8) DateTimeImmutable::__construct -- date_create_immutable — 新しい DateTimeImmutable オブジェクトを返す 説明 オブジェクト指向型 public function DateTimeImmuta ... able::__construct() の複雑な例 <?php date_default_timezone_set ( 'America/Jamaica' ); // PHP のデフォルトのタイムゾーンでの日時の指定 $date = new DateTimeImmutable ( '2000-01-01' ); echo $date -> format ( 'Y-m-d H:i:sP' ) . "\n" ; // 指定したタイムゾー ... ンでの日時の指定 $date = new DateTimeImmutable ( '2000-01-01' , new DateTimeZone ( 'Pacific/Nauru' )); echo $date -> format ( 'Y-m-d H ... :i:sP' ) . "\n" ; // PHP のデフォルトのタイムゾーンでの現在日時 $date = new DateTimeImmutable (); echo $date -> format ( 'Y-m-d H:i:sP' ) . "\n" ; // 指定したタイムゾーンでの現在日時 $da ...
https://man.mtool.work/php/8.3/datetimeimmutable.construct.html
DateTime::add — 年月日時分秒の値を加えることで、DateTime オブジェクトを変更する... 10454
DateTime::add date_add (PHP 5 >= 5.3.0, PHP 7, PHP 8) DateTime::add -- date_add — 年月日時分秒の値を加えることで、DateTime オブジェクトを変更する 説明 オブジェクト指向型 public function DateTime::add ( DateInterval $interval ): DateTime 手続 ... オブジェクト 戻り値 メソッドチェインに使う、変更された DateTime オブジェクトを返します。 参考 DateTimeImmutable::add() - 年月日時分秒の値を加え、新しいオブジェクトを返す 他のマニュアルの関連ページ Python datetime Python datetime DuckDB Interval Function ...
https://man.mtool.work/php/8.3/datetime.add.html
DateTime::sub — 年月日時分秒の値を DateTime オブジェクトから引く | PHP 8.3 9651
DateTime::sub date_sub (PHP 5 >= 5.3.0, PHP 7, PHP 8) DateTime::sub -- date_sub — 年月日時分秒の値を DateTime オブジェクトから引く 説明 オブジェクト指向型 public function DateTime::sub ( DateInterval $interval ): DateTime 手続き型 function ... dOperationException がスローされるようになりました。 date_sub() は変更されていません。 参考 DateTimeImmutable::sub() - 年月日時分秒の値を引く 他のマニュアルの関連ページ Python datetime Python datetime DuckDB Interval Functions DuckDB Timestamp Functio ...
https://man.mtool.work/php/8.3/datetime.sub.html
日付・時刻 | PHP 8.3 9258
日付・時刻 はじめに DateTimeImmutable と、 それに関連するクラスを使うと、日付/時刻 に関する情報を表現できます。 このオブジェクトは、日付/時刻 の文字列表現か、 現在のシステム時刻から作成できます。 この情報を変更したり、 フォーマット化するため ... ンストール/設定 インストール手順 実行時設定 定義済み定数 例 日付/時刻 の算術 DateTime — DateTime クラス DateTime::add — 年月日時分秒の値を加えることで、DateTime オブジェクトを変更する DateTime::__construct — 新しい DateTime オブジェクトを返す DateTime: ... タンプを用いて日付と時刻を設定する DateTime::setTimezone — DateTime オブジェクトのタイムゾーンを設定する DateTime::sub — 年月日時分秒の値を DateTime オブジェクトから引く DateTimeImmutable — DateTimeImmutable クラス DateTimeImmutable::add — 年月日時分秒の ... ムスタンプを用いて日付と時刻を設定する DateTimeImmutable::setTimezone — タイムゾーンを設定する DateTimeImmutable::sub — 年月日時分秒の値を引く DateTimeInterface — DateTimeInterface インターフェイス DateTimeInterface::diff — ふたつの DateTime オブジェク ...
https://man.mtool.work/php/8.3/book.datetime.html
DateTimeImmutable::add — 年月日時分秒の値を加え、新しいオブジェクトを返す | PHP... 9258
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 functio ... -> format ( 'Y-m-d' ) . "\n" ; ?> 上の例の出力は以下となります。 2001-01-31 2001-03-03 参考 DateTimeImmutable::sub() - 年月日時分秒の値を引く DateTimeImmutable::diff() - ふたつの DateTime オブジェクトの差を返す DateTimeImmutable::modify() - タイムスタ ...
https://man.mtool.work/php/8.3/datetimeimmutable.add.html
DateTimeImmutable::modify — タイムスタンプを変更した新しいオブジェクトを作る | ... 9045
DateTimeImmutable::modify (PHP 5 >= 5.5.0, PHP 7, PHP 8) DateTimeImmutable::modify — タイムスタンプを変更した新しいオブジェクトを作る 説明 #[ \NoDiscard ( message : "as DateTimeImmutable::modify() does not modify the object itself" )] publi ... e2 -> format ( 'Y-m-d' ) . "\n" ; 上の例の出力は以下となります。 2001-01-31 2001-03-03 参考 DateTimeImmutable::add() - 年月日時分秒の値を加え、新しいオブジェクトを返す DateTimeImmutable::sub() - 年月日時分秒の値を引く DateTimeImmutable::setDate() - 日 ...
https://man.mtool.work/php/8.3/datetimeimmutable.modify.html
DateTimeImmutable::sub — 年月日時分秒の値を引く | PHP 8.3 8848
DateTimeImmutable::sub (PHP 5 >= 5.5.0, PHP 7, PHP 8) DateTimeImmutable::sub — 年月日時分秒の値を引く 説明 #[ \NoDiscard ( message : "as DateTimeImmutable::sub() does not modify the object itself" )] public function DateTimeImmutable::sub ( ... -> format ( 'Y-m-d' ) . "\n" ; ?> 上の例の出力は以下となります。 2001-03-30 2001-03-02 参考 DateTimeImmutable::add() - 年月日時分秒の値を加え、新しいオブジェクトを返す DateTimeImmutable::diff() - ふたつの DateTime オブジェクトの差を返す DateTimeImmuta ...
https://man.mtool.work/php/8.3/datetimeimmutable.sub.html
DateTimeInterface::diff — ふたつの DateTime オブジェクトの差を返す | PHP 8.3 8439
DateTimeInterface::diff DateTimeImmutable::diff DateTime::diff date_diff (PHP 5 >= 5.3.0, PHP 7, PHP 8) DateTimeInterface::diff -- DateTimeImmutable::diff -- DateTime::diff -- date_diff — ふたつの DateTime オブジェクトの差を返す 説明 オブジ ... 下となります。 bool(false) bool(true) bool(false) 参考 DateInterval::format() - 間隔をフォーマットする DateTime::add() - 年月日時分秒の値を加えることで、DateTime オブジェクトを変更する DateTime::sub() - 年月日時分秒の値を DateTime オブジェクトから引く 他 ...
https://man.mtool.work/php/8.3/datetime.diff.html
PREV 1 2 3 NEXT