SnowFlake Decoder

This tool decode snowflake ID. What is Snowflake (Snowflake is a network service for generating unique ID numbers at high scale with some simple guarantees.) Implementations link

Background

Looking at this series of tweets, I thought that it would be nice to be able to easily decode snowflake and created it.

Installation

go get github.com/famasoon/snowflake_decoder

Usage

$ snowflake_decoder [SnowFlake ID]

Example

$ snowflake_decoder 1228330164804837377
ID: 1228330164804837377
TimeStamp: 292856732560
UnixTime: 1581691707217
Date: 2020-02-14 23:48:27.00000001 +0900 JST
WorkerID: 14
DatacenterID: 11
Sequence: 1

For reference