|
Shifting date/time values is difficult because Perl (or any other
language) doesn't provide built-in support for doing this.
But you can take advantage of an ExifTool function to do this.
The following user-defined tag will shift the date/time back
by 2 months:
%Image::ExifTool::UserDefined = (
'Image::ExifTool::Composite' => {
ShiftedDateTime => {
Require => 'DateTimeOriginal',
ValueConv => q{
require 'Image/ExifTool/Shift.pl';
Image::ExifTool::ShiftTime($val, '0:2:0 0:0:0', -1);
return $val;
},
PrintConv => '$self->ConvertDateTime($val)',
},
},
);
|