[Originally posted by exiftool on 2007-12-10 12:24:18-08]To do this would require a user-defined tag to extract the time from
a date/time value. You could then set the date like this:
exiftool -alldates<"2007:03:04 $mytime" FILE
(Note: use single quotes in Unix, double as above in Windows)
The following config file will allow you to do this:
%Image::ExifTool::UserDefined = (
'Image::ExifTool::Composite' => {
MyTime => {
Require => 'DateTimeOriginal',
# remove the date
ValueConv => '$val=~s/.*? //; $val',
},
},
);
1; #end
See the
config
file documentation for instructions on installing the configuration file.
- Phil