Skip to content

Commit

Permalink
Add lowest, highest possible TimeUUIDs to utils
Browse files Browse the repository at this point in the history
  • Loading branch information
thobbs committed Apr 25, 2012
1 parent e00f2d5 commit 2390363
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pycassa/util.py
Expand Up @@ -13,6 +13,12 @@

_number_types = frozenset((int, long, float))

LOWEST_TIME_UUID = uuid.UUID('00000000-0000-1000-8080-808080808080')
""" The lowest possible TimeUUID, as sorted by Cassandra. """

HIGHEST_TIME_UUID = uuid.UUID('ffffffff-ffff-1fff-bf7f-7f7f7f7f7f7f')
""" The highest possible TimeUUID, as sorted by Cassandra. """

def convert_time_to_uuid(time_arg, lowest_val=True, randomize=False):
"""
Converts a datetime or timestamp to a type 1 :class:`uuid.UUID`.
Expand Down

0 comments on commit 2390363

Please sign in to comment.