Logo Search packages:      
Sourcecode: lazygal version File versions  Download package

def lazygal::metadata::ExifTags::get_exif_date (   self,
  name 
)
Parses date from EXIF information.

Definition at line 39 of file metadata.py.

                                 :
        '''
        Parses date from EXIF information.
        '''
        exif_date = str(self[name])
        date, time = exif_date.split(' ')
        year, month, day = date.split('-')
        hour, minute, second = time.split(':')
        return datetime.datetime(int(year), int(month), int(day),
                           int(hour), int(minute), int(second))


Generated by  Doxygen 1.6.0   Back to index