mtime()
  public
  
    
    
Returns the modification time for file.
File.new("testfile").mtime   
   
  
    Show source    
    
      static VALUE
rb_file_mtime(VALUE obj)
{
    rb_io_t *fptr;
    struct stat st;
    GetOpenFile(obj, fptr);
    if (fstat(fptr->fd, &st) == -1) {
        rb_sys_fail_path(fptr->pathv);
    }
    return stat_mtime(&st);
}