I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2008-03-03 21:56:20-08 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 2008-03-04 12:47:30-08 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 2008-03-04 23:26:53-08 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 2008-03-05 00:40:51-08 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 2008-04-05 10:50:13-07 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
Direct Responses: Write a response