On 11/14/06, Peter Bailey <pbailey / bna.com> wrote: > Hello, > I need to notate the date/time attributes of files. I'm using File.ctime > and trimming it back to show just day, date, and time. > > filetime = File.ctime(txtfile) > filetime = filetime.to_s.gsub!(/ -.*$/, "") > > But, I've noticed that files that list in the directories as being dated > November 8 are showing via ctime as November 13 files. What's up? Perhaps dir/ls shows mtime? Try checking mtime/ctime/atime to see which is the right one. To display ctime on windows, try dir /T:C on unix ls -l --time=ctime