Info-ZIP Additional timestamp field
# File lib/zip/extra_field/universal_time.rb, line 27 def ==(other) @mtime == other.mtime && @atime == other.atime && @ctime == other.ctime end
# File lib/zip/extra_field/universal_time.rb, line 17 def merge(binstr) return if binstr.empty? size, content = initial_parse(binstr) size or return @flag, mtime, atime, ctime = content.unpack("CVVV") mtime and @mtime ||= ::Zip::DOSTime.at(mtime) atime and @atime ||= ::Zip::DOSTime.at(atime) ctime and @ctime ||= ::Zip::DOSTime.at(ctime) end
Generated with the Darkfish Rdoc Generator 2.