Is there a way to retroactively create a UUID based on time / node in PHP?

Most time-based temporary UUIDs (type 1) are created using the current time. I am migrating a MySQL database to cassandra and would like to create a time-based UUID for archived items. Can someone provide an example of how type 1 UUIDs are created using past time periods?

+5
source share
1 answer

All uuids version 1 are a combination of node identifier (MAC address), timestamp and random seed.

Yes it is possible. The process is reversible.

RFC4122 UUID 1 ( 4.1.4):

" UUID 1 Universal (UTC) 100- 00: 00: 00.00, 15 1582 ( )".

( 4.2.1) UUID ( uuid 1)

+3

All Articles