Add time to date taken and apply as file name

Advanced Renamer forum
#1 : 23/12-16 02:04
Posts: 2

I have photos from two different cameras. The time was set incorrectly on one of the cameras. I want to rename all files using <IMG YEAR><IMG MONTH><IMG DAY>_<IMG HOUR><IMG MIN><IMG SEC>, but for the photos from the camera with the wrong time I want to add XX minutes in the new file name. How do I do that?



23/12-16 02:04
#2 : 26/12-16 21:07
G. Lambany
G. Lambany
Posts: 187
Reply to #1:
Here, I coded a limited script that will accept a second, minute and hour offset to add to the already existing datetimeoriginal of an exif tag

the three first constants are where you need to input the offset.

const OFFSET_SEC = 0;
const OFFSET_MIN = 0;
const OFFSET_HR = 0;

like so:

const OFFSET_SEC = 20;
const OFFSET_MIN = 28;
const OFFSET_HR = 1;

you can put more than 60 seconds and more than 60 minutes, but negative values will have limited support. I could code it to support them, but right now it is not designed to.


26/12-16 21:07
#3 : 05/03-17 23:18
Posts: 2
Oh man! I totally forgot about that! I just looked at it now - 3 months later! But that is exactly what I needed! Thanks a lot!


05/03-17 23:18 - edited 05/03-17 23:19