Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
few samples of GUID
3eee0e14-75cf-41af-afa3-f3a89e293c4c
9f463ddb-5a5e-4e90-b947-e26e0becb78a 


What I have tried:

i can't find code to start this decoding only one link
[^]
Posted
Updated 9-Nov-17 5:53am

It's not that simple.

Not every GUID (or UUID) has a timestamp component in it. There are 5 versions of UUID's that I know of, only 2 of which use the time they are generated.

GUID's generated by Windows have been version 4 (Randomly Generated) for the last 20-ish years. There is no time component in them.

The two samples you posted are version 4 GUIDs. The first digit in the 3rd group is a 4, signaling this is a version 4 GUID. You'll also find that the first digit in the 4th group of a version 4 GUID is always going to be 8, 9, A, or B. This is because two of the bits in that digit are reserved for version information.

In a version 4 GUID, 6 bits are reserved for version data, the rest are randomly generated.
 
Share this answer
 
v2
Comments
Karthik_Mahalingam 9-Nov-17 12:48pm    
5
You can't: What is a GUID[^] - Version 4 GUIDs are random with the exception of the four bit Version, and two bit variant fields, they do not contain a timestamp.
 
Share this answer
 
Comments
Jawad Ahmed Tanoli 9-Nov-17 11:45am    
have you try this link
http://www.mahonri.info/cgi/uuid.cgi
OriginalGriff 9-Nov-17 11:56am    
Have you? It specifically and correctly recognises V4 GUIDs and doesn't even try to extract timestamp info ... because it knows there isn't any.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900