# File lib/archive/support/time.rb, line 45 def initialize(dos_time = nil) case dos_time when nil @dos_time = Time.now.to_dos_time.dos_time when Integer @dos_time = dos_time else unless dos_time.length == 4 then raise ArgumentError, 'length of DOS time structure is not 4' end @dos_time = dos_time.unpack('V')[0] end end