code: def add_date_time_original(self, date_time, time_format='%Y:%m:%d %H:%M:%S.%f'):
          
          try:
              DateTimeOriginal = date_time.strftime(time_format)[:-3]
              self._ef['Exif'][piexif.ExifIFD.DateTimeOriginal] = DateTimeOriginal
          except Exception as e:
              print_error("Error writing DateTimeOriginal, due to " + str(e))
docs: Add date time original.