Method: Ciql::UUID.ending
- Defined in:
- lib/ciql/uuid.rb
.ending(time) ⇒ SimpleUUID::UUID
Create a fake time UUID that sorts as the largest for a timestamp
20 21 22 |
# File 'lib/ciql/uuid.rb', line 20 def self.ending(time) create_uuid((time.stamp + 1) * 10 - 1, 0x7f7f7f7f7f7f7f7f) end |