public Method

Stat.ctime

stat.ctime  aTime

Returns the change time for stat (that is, the time directory information about the file was changed, not the file itself).

File.stat("testfile").ctime   #=> Wed Apr 09 08:53:14 CDT 2003

Source Code

/*
*  call-seq:
*     stat.ctime -> aTime
*  
*  Returns the change time for <i>stat</i> (that is, the time
*  directory information about the file was changed, not the file
*  itself).
*     
*     File.stat("testfile").ctime   #=> Wed Apr 09 08:53:14 CDT 2003
*     
*/

static VALUE
rb_stat_ctime(self)
   VALUE self;
{
   return rb_time_new(get_stat(self)->st_ctime, 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.