public Method

Stat.atime

stat.atime    time

Returns the last access time for this file as an object of class Time.

File.stat("testfile").atime   #=> Wed Dec 31 18:00:00 CST 1969

Source Code

/*
*  call-seq:
*     stat.atime   => time
*  
*  Returns the last access time for this file as an object of class
*  <code>Time</code>.
*     
*     File.stat("testfile").atime   #=> Wed Dec 31 18:00:00 CST 1969
*     
*/

static VALUE
rb_stat_atime(self)
   VALUE self;
{
   return rb_time_new(get_stat(self)->st_atime, 0);
}
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.