From: Ben Bleything Date: 2007-10-24T00:48:08+09:00 Subject: Re: Time stamp on jpg On Tue, Oct 23, 2007, Citizen Snips wrote: > nick wrote: > > I am trying to find the time that a jpg was created. I am using the > > File.atime(file) code. My problem is it will tell me the date that it > > was created but the time is 00:00:00, I was wanting to know if anyone > > else has ever came across this problem. I am using ruby 1.86 > > try mtime > atime is the time last accessed, not created Depending on where the JPEG came from, you might try extracting the EXIF data too. If the image is coming from a camera, it's very likely to have a timestamp for when it was captured. Search Rubyforge for 'exif', there are a number of projects. Ben