Method: Empp::Utils::Utils.getTimestampInt
- Defined in:
- lib/empp/utils/utils.rb
.getTimestampInt(now) ⇒ Object
MMDDHHMMSS
12 13 14 15 |
# File 'lib/empp/utils/utils.rb', line 12 def self.getTimestampInt(now) u8 = BinData::Uint8.new intVal = now.month * 10**8 + now.day * 10**6 + now.hour * 10**4 + now.min * 10**2 + now.sec end |