Skip to content
/ UUID-Pure Public template

Generate UUID v7/v8 and get timestamp in ms from it

Notifications You must be signed in to change notification settings

hellmany/UUID-Pure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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)

About

Generate UUID v7/v8 and get timestamp in ms from it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published