Method: Zip::ExtraField::UniversalTime#pack_for_local
- Defined in:
- lib/zip/extra_field/universal_time.rb
#pack_for_local ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/zip/extra_field/universal_time.rb', line 33 def pack_for_local s = [@flag].pack("C") @flag & 1 != 0 and s << [@mtime.to_i].pack("V") @flag & 2 != 0 and s << [@atime.to_i].pack("V") @flag & 4 != 0 and s << [@ctime.to_i].pack("V") s end |