Katsubushi::Converter - id converter issued by katsubushi
use Katsubushi::Converter my $epoch = Katsubushi::Converter::id_to_epoch($id); print "id=${id} issued at ${epoch} in unix epoch time"
This module provides methods to convert id issued by katsubushi.
katsubushi is id generator written in Go. github.com/kayac/go-katsubushi
$epoch = id_to_epoch($id)
$epoch_msec = id_to_epoch_msec($id)
Convert id to epoch in seconds/milliseconds.
$id = epoch_to_id($epoch)
$id = epoch_msec_to_id($epoch_msec)
Convert epoch seconds/milliseconds to id. This method assume that WorkerID and Sequense are both 0.
NAGATA Hiroaki <handlename>
1 POD Error
The following errors were encountered while parsing the POD:
Unknown directive: =head
To install Katsubushi::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Katsubushi::Client
CPAN shell
perl -MCPAN -e shell install Katsubushi::Client
For more information on module installation, please visit the detailed CPAN module installation guide.