File Renamer - Source of Date and Time Information in the Processing Instruction

Started by moviemaker445, August 02, 2023, 11:04:57 AM

Previous topic - Next topic

moviemaker445

I have a file named XT1_4497.raf

with the Create Date (XMP::xmp\CreateDate\CreateDate\0) of
29/06/2015 8:32:07 PM-05:00

I would like to add the Create Date and Time to the end of the filename but
when I set the Renamer with Processing Instructions to add 'Date in YYY-MM-DD Format' and
'Time in HH-MM-SS Format' to the original filename, the result is

XT1_4497 2015-06-30 11-32-07.raf

Could someone please enlighten me as to where the Renamer gets this Date and Time information which doesn't match the Create Date information?

Thanks

Mario

Not enough info. Show us your Renamer preset and details.

Which date step did you use?
The Renamer by default uses File.DateTime which is not derived from the CreateDate necessarily.
See How IMatch uses Date and Time Information
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

moviemaker445

Thanks Mario.
I think I have sorted out the problem. It appears that, if the Time Zone of the image is not present OR the same as the 'System Time', the Renamer uses the 'System Time adjusted for Time Zone' somehow, when renaming the file.  (Hope that makes sense)
Cheers

Mario

If you use any of the predefined Date / Time steps in the Renamer, they use the File.DateTime.Local timestamp (See UTC, Local Time, Original Time). These timestamps are derived from a series of timestamps, depending on the file format and metadata availability.

File.DateTime.Local is dynamically produced from the File.DateTime (which is in UTC), applying the local time zone and daylight saving time (DST) at the date the image was produced. And that's what the Renamer is using.

For images, this timestamp is derived from Date Subject Created, not Create Date.
What does the Metadata Panel show for the date created and date subject created for the image?

What do the following variables show for your test file:

UT: {File.DateTime}
LT: {File.DateTime.Local}
LT: {File.DateTime.Local.TZO}
OT: {File.DateTime.Original}
OT: {File.DateTime.Original.TZO}

You can copy them into VarToy and paste the result into your reply.

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook