oittaa / uuid6-python

New time-based UUID formats which are suited for use as a database key
MIT License
126 stars 10 forks source link

Allow passing timestamp to constructor of uuid7 #174

Open daniel347x opened 1 week ago

daniel347x commented 1 week ago

Without this PR, the only way to instantiate a UUID7 is with the current moment in time. This PR allows passing a timestamp in ms instead.

mfresonke-work commented 1 week ago

Yes please! this would be very helpful.

EDIT: I posted some thoughts on how I could improve your concerns @oittaa in the related discussion page