21件ヒット
[1-21件を表示]
(0.109秒)
ライブラリ
- ビルトイン (21)
クラス
- File (10)
-
File
:: Stat (11)
検索結果
-
File
:: Stat # atime -> Time (26114.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
# birthtime -> Time (8013.0) -
作成された時刻を Time オブジェクトとして返します。
...::EXXX ファイルの時刻の取得に失敗した場合に発生します。
@raise NotImplementedError Windows のような birthtime のない環境で発生します。
File.new("testfile").birthtime #=> Wed Apr 09 08:53:14 CDT 2003
@see File#lstat, File#atime, File#ctime, File#mtime...