Hello,
I am using the exif.py library. After calling
tags=exif.process_file(...)
i want to retrieve the time the image was captured. so i continue with
t =tags['Image DateTime'] if tags.has_key('Image DateTime') else time.time()
now i want to store t in django's database. For that t must be in the form 2010-07-20 14:37:12 but apparently exif delivers 2010:07:20 14:37:12 however when i go
type(t)
it returns 'instance' as opposed to float which is the result of
type(time.time())
or 'str' which is the type of string. How can I parse the value EXIF gave me to stuff it into the django model?