Class: File
- Inherits:
-
IO
- Object
- IO
- File
- Defined in:
- ext/_doc.rb,
ext/file-btime.c
Defined Under Namespace
Classes: Stat
Class Method Summary collapse
-
.btime(file_name) ⇒ Time
Returns the creation time for the named file as an object of class
Timeornilif it is not available.
Instance Method Summary collapse
-
#btime ⇒ Time
Returns the creation time as an object of class
Timefor file ornilif it is not available.
Class Method Details
.btime(file_name) ⇒ Time
Returns the creation time for the named file as an object of class Time or nil if it is not available.
File.btime("testfile") #=> Wed Apr 09 08:51:48 CDT 2003
19 20 21 |
# File 'ext/_doc.rb', line 19 def File.btime(file_name) native_code end |
Instance Method Details
#btime ⇒ Time
Returns the creation time as an object of class Time for file or nil if it is not available.
File.new("testfile").btime #=> Wed Dec 31 18:00:00 CST 1969
10 11 12 |
# File 'ext/_doc.rb', line 10 def btime native_code end |