public Method

Stat.mtime

stat.mtime  aTime

Returns the modification time of stat.

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

Source Code

/*
*  call-seq:
*     stat.mtime -> aTime
*  
*  Returns the modification time of <i>stat</i>.
*     
*     File.stat("testfile").mtime   #=> Wed Apr 09 08:53:14 CDT 2003
*     
*/

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