Class: DMAP::Time

Inherits:
Time
  • Object
show all
Defined in:
lib/dmap.rb

Overview

For adding Time#to_dmap

Instance Method Summary collapse

Instance Method Details

#to_dmapObject



292
293
294
# File 'lib/dmap.rb', line 292

def to_dmap
  "\000\000\000\004"<<[self.to_i].pack("N")
end