From: Eric Lee Green Date: 2001-10-14T03:07:58+09:00 Subject: [ruby-talk:22492] Re: Getting at the raw mtime value :-( On Saturday 13 October 2001 10:59, you wrote: > At Sun, 14 Oct 2001 02:41:24 +0900, > > Eric Lee Green wrote: > > Unfortunately, the File.stat object returns the 'mtime' as an > > already-translated ASCII string ( i.e., like localtime(time()) rather > > than like time() ). > > No. File.mtime(file) (or File.stat(file).mtime) returns a Time instance, > not a formatted String. Ah. I see. When I did #{mtime} in a string to build an SQL query it returned a formatted string, but if I do #{mtime.to_i} it should put the integer value. Thanks! Eric Lee Green GnuPG public key at http://badtux.org/eric/eric.gpg mailto:eric@badtux.org Web: http://www.badtux.org You do not save freedom by destroying freedom