Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string time_to_uuid(int64_t the_time) {
- string ssUUID;
- stringstream ss;
- ss << hex << ((time(NULL) * 10000) + 122192928000000000);
- ssUUID = ss.str();
- ssUUID = ssUUID.substr(7,8) + "-" + ssUUID.substr(3,4) + "-0" + ssUUID.substr(0,3) + "-0000-000000000000";
- return ssUUID;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement