blob: 35c26a7aed2cc62875175feb0c5abe12d158950d [file] [log] [blame]
import uuid
import time
import datetime
class UUID:
"""UUID is a simple library that generates a uuid"""
def generate_UUID(self):
"""generate a uuid"""
return uuid.uuid4()
def generate_MilliTimestamp_UUID(self):
"""generate a millisecond timestamp uuid"""
then = datetime.datetime.now()
return int(time.mktime(then.timetuple())*1e3 + then.microsecond/1e3)