Class | DOSTime |
In: |
lib/archive/support/time.rb
|
Parent: | Object |
A representation of the DOS time structure which can be converted into instances of Time.
Creates a new instance of DOSTime. dos_time is a 4 byte String or unsigned number (Integer) representing an MS-DOS time structure where:
Bits 0-4: | 2 second increments (0-29) |
Bits 5-10: | minutes (0-59) |
Bits 11-15: | hours (0-24) |
Bits 16-20: | day (1-31) |
Bits 21-24: | month (1-12) |
Bits 25-31: | four digit year minus 1980 (0-119) |
If dos_time is ommitted or nil, a new instance is created based on the current time.