/lisp/php/php-manual-html/function.getlastmod.html

https://github.com/cue-taro/emacs-setting-files · HTML · 85 lines · 72 code · 13 blank · 0 comment · 0 complexity · a4f92acfadacc120a04d7874dbb6ce95 MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  5. <title>最終更新時刻を取得する</title>
  6. </head>
  7. <body><div class="manualnavbar" style="text-align: center;">
  8. <div class="prev" style="text-align: left; float: left;"><a href="function.getenv.html">getenv</a></div>
  9. <div class="next" style="text-align: right; float: right;"><a href="function.getmygid.html">getmygid</a></div>
  10. <div class="up"><a href="ref.info.html">PHP オプション/情報 関数</a></div>
  11. <div class="home"><a href="index.html">PHP Manual</a></div>
  12. </div><hr /><div id="function.getlastmod" class="refentry">
  13. <div class="refnamediv">
  14. <h1 class="refname">getlastmod</h1>
  15. <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">getlastmod</span> &mdash; <span class="dc-title">最終更新時刻を取得する</span></p>
  16. </div>
  17. <div class="refsect1 description" id="refsect1-function.getlastmod-description">
  18. <h3 class="title">説明</h3>
  19. <div class="methodsynopsis dc-description">
  20. <span class="type">int</span> <span class="methodname"><b>getlastmod</b></span>
  21. ( <span class="methodparam">void</span>
  22. )</div>
  23. <p class="para rdfs-comment">
  24. 現在のページの最終更新時刻を取得します
  25. </p>
  26. <p class="para">
  27. 別のファイルの最終更新時刻が知りたい場合は
  28. <span class="function"><a href="function.filemtime.html" class="function">filemtime()</a></span> を使用してください
  29. </p>
  30. </div>
  31. <div class="refsect1 returnvalues" id="refsect1-function.getlastmod-returnvalues">
  32. <h3 class="title">返り値</h3>
  33. <p class="para">
  34. 現在のページの最終更新時刻を返します
  35. この値は Unix のタイムスタンプでそのまま <span class="function"><b>date
  36. ()</b></span>に渡す事ができますエラーの場合は <b><tt>FALSE</tt></b> を返します
  37. </p>
  38. </div>
  39. <div class="refsect1 examples" id="refsect1-function.getlastmod-examples">
  40. <h3 class="title"></h3>
  41. <p class="para">
  42. <div class="example" id="example-429">
  43. <p><b>例1 <span class="function"><b>getlastmod()</b></span> の例</b></p>
  44. <div class="example-contents">
  45. <div class="phpcode"><code><span style="color: #000000">
  46. <span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">//&nbsp;たとえば、'最終更新時刻:March&nbsp;04&nbsp;1998&nbsp;20:43:59.'&nbsp;を出力します<br /></span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"最終更新時刻:&nbsp;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">date&nbsp;</span><span style="color: #007700">(</span><span style="color: #DD0000">"F&nbsp;d&nbsp;Y&nbsp;H:i:s."</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">getlastmod</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;</span>
  47. </span>
  48. </code></div>
  49. </div>
  50. </div>
  51. </p>
  52. </div>
  53. <div class="refsect1 seealso" id="refsect1-function.getlastmod-seealso">
  54. <h3 class="title">参考</h3>
  55. <p class="para">
  56. <ul class="simplelist">
  57. <li class="member"><span class="function"><a href="function.date.html" class="function" rel="rdfs-seeAlso">date()</a> - ローカルの日付/時刻を書式化する</span></li>
  58. <li class="member"><span class="function"><a href="function.getmyuid.html" class="function" rel="rdfs-seeAlso">getmyuid()</a> - PHP スクリプト所有者のユーザ ID を取得する</span></li>
  59. <li class="member"><span class="function"><a href="function.getmygid.html" class="function" rel="rdfs-seeAlso">getmygid()</a> - PHP スクリプトの所有者の GID を得る</span></li>
  60. <li class="member"><span class="function"><a href="function.get-current-user.html" class="function" rel="rdfs-seeAlso">get_current_user()</a> - 現在の PHP スクリプトの所有者の名前を取得する</span></li>
  61. <li class="member"><span class="function"><a href="function.getmyinode.html" class="function" rel="rdfs-seeAlso">getmyinode()</a> - 現在のスクリプトの inode を取得する</span></li>
  62. <li class="member"><span class="function"><a href="function.getmypid.html" class="function" rel="rdfs-seeAlso">getmypid()</a> - PHP のプロセス ID を取得する</span></li>
  63. <li class="member"><span class="function"><a href="function.filemtime.html" class="function" rel="rdfs-seeAlso">filemtime()</a> - ファイルの更新時刻を取得する</span></li>
  64. </ul>
  65. </p>
  66. </div>
  67. </div><hr /><div class="manualnavbar" style="text-align: center;">
  68. <div class="prev" style="text-align: left; float: left;"><a href="function.getenv.html">getenv</a></div>
  69. <div class="next" style="text-align: right; float: right;"><a href="function.getmygid.html">getmygid</a></div>
  70. <div class="up"><a href="ref.info.html">PHP オプション/情報 関数</a></div>
  71. <div class="home"><a href="index.html">PHP Manual</a></div>
  72. </div></body></html>