Method: Zip::DOSTime#to_binary_dos_time
- Defined in:
- lib/zip/dos_time.rb
#to_binary_dos_time ⇒ Object
Register DX, the Date: Bits 0-4 day (1-31) bits 5-8 month (1-12) bits 9-15 year (four digit year minus 1980)
15 16 17 18 19 |
# File 'lib/zip/dos_time.rb', line 15 def to_binary_dos_time (sec / 2) + (min << 5) + (hour << 11) end |