
I have changed the code to fail gracefully if Time::Piece is missing and added better handling of strptime errors.ĥ. I reserve the right to add additional arguments in function calls, so I have changed "pop" to "$_" to avoid future problems.Ĥ. I have changed this to make it insensitive.ģ. As written, the optional tag name was case sensitive. I will add an ExifTool member variable called "FMT_EXPR" in version 10.49 and guarantee that this will work for future releases.Ģ. The fact that $1 contains the expression is pure luck, and may change in future versions. The ValueConv relies on the value of $1 being the formatting expression. You are obviously very good at Perl and have studied the ExifTool source code.ġ. Your config file is genius! It took me a while to figure out how you were doing this. The tag can then be used on the command-line to format dates based on the parameters you give it.īy default (without passing any additional parameters), it returns DateTimeOriginal in the standard EXIF date format: $dt = Time::Piece->strptime($val, $fmtParse)
