Repository navigation
Public template
Folders and files
Repository files navigation
UUID-Pure
Generate UUID v7/v8 and get timestamp in ms from it
INSTALLATION
To install this module, run the following commands:
perl Makefile.PL
make
make install
Methods:
my $uuid = uuidv7(); # gen uuid v7
my ($uuid,$tms) = uuidv7(); # gen uuid v7 and get timestamp in ms
my $uuidv8 = uuidv8('shard1'); # gen uuid v8
my ($uuidv8,$tms) = uuidv8(); # gen uuid v8 and get timestamp in ms
Example in example.pl file
LICENSE AND COPYRIGHT
This software is Copyright (c) 2024 by Yuri A. Kabaenkov.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)