darsia.exif_date#

exif_date(source)[source]#

Date of an image file from its EXIF data (tag 306, DateTime).

Parameters:
sourcePath or bytes

Image file, or the bytes of an image file.

Returns:
datetime or None

The date, or None if the file has no EXIF date (or no EXIF data).