るりまサーチ (Ruby 2.2.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.032秒)
トップページ > クラス:File::Stat[x] > バージョン:2.2.0[x] > クエリ:Time[x] > クエリ:atime[x]

別のキーワード

  1. time httpdate
  2. time iso8601
  3. time rfc2822
  4. time strptime
  5. time parse

ライブラリ

検索結果

File::Stat#atime -> Time (72946.0)

最終アクセス時刻を返します。

...最終アクセス時刻を返します。

//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.atime.to_a #=> [45, 5, 21, 5, 9, 2007, 3, 248, false, "\223\214\213\236 (\225W\217\200\216\236) "]
//}

@see Time...

File::Stat#birthtime -> Time (18625.0)

作成された時刻を返します。

作成された時刻を返します。

@raise NotImplementedError Windows のような birthtime のない環境で発生します。

//emlist[][ruby]{
File.write("testfile", "foo")
sleep 10
File.write("testfile", "bar")
sleep 10
File.chmod(0644, "testfile")
sleep 10
File.read("testfile")
File.stat("testfile").birthtime #=> 2014-02-24 11:19:17 +0900...