Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'How about adding or subtracting time from creation dates?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How about adding or subtracting time from creation dates?
Authored by: strangeluck on Jul 07, '06 07:56:22PM

This is helpful, but what I really need is a way to say "subtract 1 yr 3 days and 10 seconds from all the creation dates in this folder." Anyone have any suggestions?

Thanks...



[ Reply to This | # ]
How about adding or subtracting time from creation dates?
Authored by: alexorso on Jul 10, '06 06:25:30PM
If you don't need a GUI-based tool, you can use JHead (http://www.sentex.net/~mwandel/jhead/). I use it every time I have to put together pictures taken with different cameras to sync the pictures' timestamps. It always worked great for me.

[ Reply to This | # ]
How about adding or subtracting time from creation dates?
Authored by: ctierney on Jan 03, '07 11:17:47AM
If your date utility supports the -d option, then you might try something like:
date -d'2005-02-03 - 1 year 2 days 10 seconds ago'
I'm still at 10.3.9 and can confirm that the out of the box date utility does not support this. But maybe 10.4 does(?).

[ Reply to This | # ]
How about adding or subtracting time from creation dates?
Authored by: Cezary Okupski on May 19, '09 10:03:10PM
Install exiftool (http://www.sno.phy.queensu.ca/~phil/exiftool/#shift) and then in the command line:
exiftool '-FileModifyDate-=1:0:3 0:0:10' DIR
or if you want to modify (or set) metadata dates as well then for example:
exiftool '-AllDates-=1:0:3 0:0:10' DIR
There is so much more functionality to manage photos, so it's worth to have a read about it.

[ Reply to This | # ]