Add support for Exif.GPSInfo.GPSTimeStamp / Rational [3]
@chrism
Submitted by Chris Mayo Link to original bug (#737495)
Description
Exif.GPSInfo.GPSTimeStamp is a set of three rational numbers (like GPSLatitude, GPSLongitude and others). Couldn't see a current gexiv2 method to use. My Python quick hack uses get_tag_string:
datetime.datetime.strptime( metadata.get_tag_string("Exif.GPSInfo.GPSDateStamp") + " " + metadata.get_tag_string("Exif.GPSInfo.GPSTimeStamp"), '%Y:%m:%d %H/1 %M/1 %S/1')
(I guess I shouldn't rely on the denominator being 1, but it works with the photos I have been using)
Maybe something generic for getting 3 rational numbers?
Version: 0.10.x