現在の位置: ホーム> 関数カテゴリ一覧> fileatime

fileatime

ファイルの最後のアクセス時間を取得します
名前:fileatime
カテゴリ:ファイルシステム
対応言語:php
一言説明:ファイルの最後のアクセス時間を返します。

<span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">echo</span> <span class="token function">fileatime</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"test.txt"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token keyword">エコー</span><span class="token string double-quoted-string">「最後のアクセス:」</span> <span class="token operator">。</span><span class="token function">日付</span><span class="token punctuation">(</span> <span class="token string double-quoted-string">"f d yh:i:s。"</span> <span class="token punctuation">、</span> <span class="token function">fileatime</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"test.txt"</span> <span class="token punctuation">)</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

出力:

 1140684501
最終アクセス:2006年2月23日09:48:21。
類似の関数
  • ファイルからのフォーマット入力 fscanf

    fscanf

    ファイルからのフォーマット入力
  • ファイルを特定の長さに切り捨てます ftruncate

    ftruncate

    ファイルを特定の長さに切り捨てます
  • RealPathキャッシュエントリを取得します realpath_cache_get

    realpath_cache_get

    RealPathキャッシュエントリを取得
  • バッファーコンテンツをファイルにエクスポートします fflush

    fflush

    バッファーコンテンツをファイルにエクスポ
  • ファイルポインターへの配置 fseek

    fseek

    ファイルポインターへの配置
  • パスのディレクトリパーツに戻ります dirname

    dirname

    パスのディレクトリパーツに戻ります
  • ファイルポインターが読み取り/書き込みの場所を返します ftell

    ftell

    ファイルポインターが読み取り/書き込みの
  • ファイルにデータを書き込みます file_put_contents

    file_put_contents

    ファイルにデータを書き込みます