Generate A ksuid For A Specific Date And Time In Rust
I use truncated KSUIDs as IDs for content on my site. The shortcut I use to make a new posts adds them automatically. Older ones sometimes don't have them but generally have a date in the metadata. KSUIDs are sortable by date and while I don't use them specifically for that purpose I do like the idea of keeping them in order when possible.
This is the Rust process I use to make a new KSUID for a specific date.
use *;
use datetime;
-- end of line --