Manipulating file dates
Giles Orr
gilesorr-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Sat Mar 27 19:03:34 UTC 2010
I'll shortly be boarding a flight back to Toronto, at which time I'll
have about a thousand photos with the wrong time stamp on them (I
never remember to reset the camera until about five days have passed).
All the photos have a Toronto time stamp on them, when what I need is
six hours later. I admit I'm sitting at a Windows computer in a hotel
and haven't attempted to research this myself, but I've looked at it
in the past and the process was a bit confusing. As I recall, I would
need to get the time from the file, convert to seconds since the
computer epoch (some time in 1969?, although I think that's immaterial
in this context?), add 6*60*60 seconds, then convert back to date
format. Looping through the files with touch is no problem, but help
with the date manipulation under Bash would be much appreciated.
--
Giles
http://www.gilesorr.com/
gilesorr-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list