Module: Utilise::Augment::Time

Included in:
Time
Defined in:
lib/utilise/augment/time.rb

Overview

Extends time class to return a unique idetifier

Instance Method Summary collapse

Instance Method Details

#uniqueObject

Returns a unique number



6
7
8
# File 'lib/utilise/augment/time.rb', line 6

def unique
  now.strftime('%s%3N')[-8..-1]
end