Thread

Posted on Mon Mar 3 23:56:20 2008 by mixx
Can one use a moniker like *now*?
I use ExifTool now for most everything. Would be nice if I could use -ModifyDate="now". Is there such a capability (planned)? Thanxx, Mixx
Direct Responses: 7261 | Write a response
Posted on Tue Mar 4 14:47:30 2008 by exiftool in response to 7256
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
Posted on Wed Mar 5 01:26:53 2008 by mixx in response to 7261
Re: Can one use a moniker like *now*?
Thanks, Phil, good enough for me! Just what I wanted. Thanxx, Mixx PS: BTW, I do no see why you wouldn't put it into exiftool proper.
Direct Responses: 7272 | Write a response
Posted on Wed Mar 5 02:40:51 2008 by exiftool in response to 7271
Re: Can one use a moniker like *now*?
Thanks for the suggestion, I'll think about this.

- Phil
Direct Responses: 7596 | Write a response
Posted on Sat Apr 5 13:50:13 2008 by exiftool in response to 7272
Re: Can one use a moniker like *now*?
With exiftool 7.22 I added an Extra "Now" tag that can be copied into a date/time tag with a command like this:

exiftool "-filemodifydate<now" image.jpg

- Phil
Write a response