lib/multi_exiftool/values.rb
def convert tag, val
      return val unless val.kind_of?(String)
      case tag
      when 'partofset', 'track'
        return val
      end
      case val
      when REGEXP_TIMESTAMP
        year, month, day, hour, minute = $~.captures[0,5].map {|cap| cap.to_i}
        if month == 0 || day == 0
          return nil
        end
        second = $6.to_f
        zone = $7
        zone = '+00:00' if zone == 'Z'
        Time.new(year, month, day, hour, minute, second, zone)
      when REGEXP_RATIONAL
        return val if $2.to_i == 0
        Rational($1, $2)
      else
        val
      end
    end
def convert tag, val
      return val unless val.kind_of?(String)
      case tag
      when 'partofset', 'track'
        return val
      end
      case val
      when REGEXP_TIMESTAMP
        year, month, day, hour, minute = $~.captures[0,5].map {|cap| cap.to_i}
        if month == 0 || day == 0
          return nil
        end
        second = $6.to_f
        zone = $7
        zone = '+00:00' if zone == 'Z'
        Time.new(year, month, day, hour, minute, second, zone)
      when REGEXP_RATIONAL
        return val if $2.to_i == 0
        Rational($1, $2)
      else
        val
      end
    end
Converts values on the basis of unified tag name and value. It is called
 each time a value is fethed from a Values instance.
 @return (maybe) converted value