Skip to content

Instantly share code, notes, and snippets.

@AgeOfMarcus
Created August 14, 2019 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AgeOfMarcus/54f99adcf7b37f95a1a11e1dc8e0f889 to your computer and use it in GitHub Desktop.
Save AgeOfMarcus/54f99adcf7b37f95a1a11e1dc8e0f889 to your computer and use it in GitHub Desktop.
test code
import uuid
uid = input('Enter uuid: ')
uid = uid if not uid == '' else str(uuid.uuid1())
print("Using UUID: %s, Variable Type: %s" % (uid, repr(type(uid))))
x = uuid.UUID(uid)
print('version',x.version)
print('time',x.time)
print('node',x.node)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment