photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: hluxem on July 22, 2023, 01:58:17 AM

Title: Format timestamp variable with sub seconds
Post by: hluxem on July 22, 2023, 01:58:17 AM
The help states that a time variable can be formatted like below. Is there a way to include the sub seconds as well? I couldn't find anything in the help if that is supported.


{File.MD.datecreated|format:YYYY:MM:DD hh:mm:ss}

Thanks,

Heiner
Title: Re: Format timestamp variable with sub seconds
Post by: Mario on July 22, 2023, 09:22:51 AM
If a camera records sub seconds, it is contained in separate tags, e.g. {File.MD.Exif::Main\37521\SubSecTimeOriginal\0} or {File.MD.Exif::Main\37521\SubSecTimeDigitized\0}. If and which of these tags exist depends on your specific camera model. Check in the Metadata Panel using the Browser layout and then use the "Copy as Variable" from the context menu.

Use something like

{File.MD.XMP::photoshop\DateCreated\DateCreated\0}{File.MD.Exif::Main\37521\SubSecTimeOriginal\0|prefix:.}

to ensure that the . is only emitted when there is a sub-second value available.