Last active
April 15, 2022 12:16
-
-
Save Vigowebs/42ab9cf4f08fca9ff9c737f13e3d6fc0 to your computer and use it in GitHub Desktop.
We can use 'Str::orderedUuid()' to generate a "timestamp first" UUID that may be efficiently stored in an indexed database column.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Str::orderedUuid(); | |
// 9603db6c-8b2c-4cbc-9f59-f161a2224879 | |
// Hex 9603db6c-8b2c to Decimal 164943310392108 | |
// Decimal 1649433103 to date 4/8/2022, 9:21:43 PM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment