Version | 1 |
Variant | specified in RFC 4122 |
urn | urn:uuid:7d444840-9dc0-11d1-b245-5ffdce74fad2 |
Hexdump | 7d4448409dc011d1b2455ffdce74fad2 |
Bytes | }DH@¥└␑╤▓E_²╬t·╥ |
Clock ID | 12869 |
Clock ID (hex) | 0x3245 |
Timestamp, RFC | 1998-02-05 00:30:23 |
Timestamp, MS | 2016-04-24 00:30:23 |
Timestamp, UNIX | 2385-04-24 00:30:23 |
Raw hex timestamp | 0x1d19dc07d444840 |
Raw timestamp | 131059314231363648 |
Sub-millisecond timestamp | 63648 |
MAC Address | 5ffdce74fad2 |
is_local bit | True |
is_multicast bit | True |
MAC Manufacturer | None |
UUIDv1 | timestamp + clock_id + version (1) + node ID (MAC) |
MAC Date | None |
https://tools.ietf.org/html/rfc4122
Seen in RFC 4122 Counts : rfc4122:1 RFC 4122 A UUID URN Namespace July 2005 uuid_t NameSpace_DNS = { /* 6ba7b810-9dad-11d1-80b4-00c04fd430c8 */ 0x6ba7b810, 0x9dad, 0x11d1, 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8 }; /* puid -- print a UUID */ void puid(uuid_t u) { int i; printf("%8.8x-%4.4x-%4.4x-%2.2x%2.2x-", u.time_low, u.time_mid, u.time_hi_and_version, u.clock_seq_hi_and_reserved, u.clock_seq_low); for (i = 0; i < 6; i++) printf("%2.2x", u.node[i]); printf("\n"); } /* Simple driver for UUID generator */ void main(int argc, char **argv) { uuid_t u; int f; uuid_create(&u); printf("uuid_create(): "); puid(u); f = uuid_compare(&u, &u); printf("uuid_compare(u,u): %d\n", f); /* should be 0 */ f = uuid_compare(&u, &NameSpace_DNS); printf("uuid_compare(u, NameSpace_DNS): %d\n", f); /* s.b. 1 */ f = uuid_compare(&NameSpace_DNS, &u); printf("uuid_compare(NameSpace_DNS, u): %d\n", f); /* s.b. -1 */ uuid_create_md5_from_name(&u, NameSpace_DNS, "www.widgets.com", 15); printf("uuid_create_md5_from_name(): "); puid(u); } Appendix B. Appendix B - Sample Output of utest uuid_create(): 7d444840-9dc0-11d1-b245-5ffdce74fad2 uuid_compare(u,u): 0 uuid_compare(u, NameSpace_DNS): 1 uuid_compare(NameSpace_DNS, u): -1 uuid_create_md5_from_name(): e902893a-9d22-3c7e-a7b8-d6e313b71d9f Leach, et al. Standards Track [Page 29]
https://github.com/google/uuid/blob/master/uuid_test.go