# File lib/ole/types/base.rb, line 84 def self.dump time # i think i'll convert whatever i get to be a datetime, because of # the covered range. return 0.chr * SIZE unless time time = time.send(:to_datetime) if Time === time # don't bother to use const_get here bignum = (time - EPOCH) * 86400 * 1e7.to_i high, low = bignum.divmod 1 << 32 [low, high].pack 'V2' end