Image-ExifTool - Re: Can one use a moniker like *now*?

Posted on Tue Mar 4 14:47:30 2008 by exiftool in response to 7256 (See the whole thread of 5)
Re: Can one use a moniker like *now*?
Hi Mixx,

No plans for this feature, but it would be possible to use the user-defined tags to emulate this functionality, using the command

exiftool "-modifydate<now" FILE

and the following .ExifTool_config file:

%Image::ExifTool::UserDefined = ( 'Image::ExifTool::Composite' => { Now => { Require => 'FileName', ValueConv => q{ my @tm = localtime; sprintf("%4d:%.2d:%.2d %.2d:%.2d:%.2d", $tm[5]+1900, $tm[4]+1, $tm[3], $tm[2], $tm[1], $tm[0]); }, }, }, ); 1; #end

- Phil
Direct Responses: 7271 | Write a response