41件ヒット
[1-41件を表示]
(0.110秒)
種類
- インスタンスメソッド (31)
- 特異メソッド (10)
クラス
- File (20)
-
File
:: Stat (11) - Pathname (10)
検索結果
先頭4件
-
Pathname
# birthtime -> Time (30329.0) -
File.birthtime(self.to_s) を渡したものと同じです。
...File.birthtime(self.to_s) を渡したものと同じです。
@raise NotImplementedError Windows のような birthtime のない環境で発生します。
@see File.birthtime... -
File
# birthtime -> Time (30313.0) -
作成された時刻を Time オブジェクトとして返します。
...時刻を Time オブジェクトとして返します。
@raise IOError 自身が close されている場合に発生します。
@raise Errno::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... -
File
. birthtime(filename) -> Time (30313.0) -
作成された時刻を返します。
...@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
@raise NotImplementedError Windows のような birthtime のない環境で発生します。
//emlist[例]......[ruby]{
File.birthtime("testfile") #=> Wed Apr 09 08:53:13 CDT 2003
//}... -
File
:: Stat # birthtime -> Time (30313.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
File.stat("testfile").mtime #=> 2014-02-24 11:19:27 +0900
File.stat("testfile").ctime #=> 2014-02-24 11:19:37 +0900
File.stat("testfile").atime #=> 2014-02-24 11:19:47 +0900
//}...