Class: File

Inherits:
IO
  • Object
show all
Defined in:
ext/_doc.rb,
ext/file-btime.c

Defined Under Namespace

Classes: Stat

Class Method Summary collapse

Instance Method Summary collapse

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

#btimeTime

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