This structure holds the following data pertaining to a Zip entry.
general purpose bit flag compression method modification time modification date
# File lib/rex/zip/blocks.rb, line 41 def initialize(gpbf, compmeth, timestamp) @gpbf = gpbf @compmeth = compmeth @mod_time = ((timestamp.hour << 11) | (timestamp.min << 5) | (timestamp.sec)) @mod_date = (((timestamp.year - 1980) << 9) | (timestamp.mon << 5) | (timestamp.day)) end
Generated with the Darkfish Rdoc Generator 2.