From: OZAWA -Crouton- Sakuro Date: 2001-10-14T02:59:31+09:00 Subject: [ruby-talk:22491] Re: Getting at the raw mtime value :-( 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. > Is there a way I can get at the raw integer value in the stat struct without > writing my own Stat class in "C"? Time.to_i returns Time in seconds from "the Epoch". -- OZAWA -Crouton- Sakuro E-Mail: mailto:crouton@weatherlight.org Web: http://www.weatherlight.org/~crouton/ PGP: C98F 74E0 AEEB 4578 1DFC F650 3BE0 9627 11FC C9F5 VERBA VOLANT, SCRIPTA MANENT