OS X Yosemite:
I took thousands of pictures on a trip recently, some from my iPhone, and some from my DSLR camera.
Now, the iPhone automatically gets its time and date from the local cell towers, but the DSLR stayed set with the time and date of its original configuration.
So basically now when I mix all the photos together and sort them by time and date, they are all out of order. I would like to view the photos chronologically and to do that I need to shift the date and time of all the DSLR photos by the same (time zone) offset.
So basically, I need a command line or a script that will do something like this:
if filename = DSC_*.*
then creation_date = creation_date + 5 hours
I'm asking this for OS X specifically, but I guess it would be interesting to know how to do this in Windows or Linux as well.
GetFileInfo
,SetFile
and thedate
commands in order to accomplish what you're asking. Have a look at Updating File Created Date by x number of days Mac OSX for some background info on this.