Datetime original

Started by ben, September 23, 2023, 10:59:58 AM

Previous topic - Next topic

ben

Hello,

I am using v1/files in an app to retrieve the date and time of a file.
After the change to iMatch 2023 it now returns the local time, which seems to be correct according to the IMWS documentation.

I would like to retrieve the original date and time as explained here: 
https://www.photools.com/help/imatch/how-imatch-uses-date-and-time.htm

From IMWS documentation i find two options only: local (datetime) or UTC (datetimeutc).

How would i have to change my code?

Thanks for any help

Ben

Mario

#1
dateTime gets the local time and dateTimeUTC gets the UTC time.
You can access the original time by fetching the EXIF time stamp and time zone offsets, as per How IMatch uses Date and Time Information Or just request the corresponding variable with your /files request using a var* field.

I will add a datetimeoriginal request field to the /files endpoint (and related) that returns the original time in dateTimeOriginal. And I will add the datetimeoffset request field that returns dateTimeOffset
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

ben

QuoteOr just request the corresponding variable with your /files request using a var* field.
Thank you very much.
Using the variable option works for me.
It just returns in a different format.

QuoteI will add a datetimeoriginal request field to the /files endpoint (and related) that returns the original time in dateTimeOriginal. And I will add the datetimeoffset request field that returns dateTimeOffset
Good news, then we will have all new date information available for scripting.

Great service, thanks again!

Mario

QuoteIt just returns in a different format.
Use the format function to format the variable result as needed.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook