LeoHsiao1 / pyexiv2

Read and write image metadata, including EXIF, IPTC, XMP, ICC Profile.
GNU General Public License v3.0
201 stars 39 forks source link

exif date string format stable? #31

Closed elguavas closed 4 years ago

elguavas commented 4 years ago

hi there, thanks for your work on pyexiv2.

the various date-times in exif info returned by pyexiv2 seem to always be in this format: '2019:06:23 19:45:17' is this a guaranteed date-time format for the exif returned?

i ask because i need to create datetime.datetime objects from these returned exif dates and using datetime.datetime.strptime() relies on a known format for the date-time string.

thanks.

elguavas commented 4 years ago

actually i just answered my own question, according to the exif specification the example given above should indeed be the format date-time strings are stored in. so this format is specified in the exif standard and is not unique to pyexiv2.

i will close this now. sorry for the static.

github-actions[bot] commented 3 years ago

This issue has been automatically closed because there has been no activity for a month.