/tuidconv

Small utility for the extraction of datetime from UUID v1 and v2

Primary LanguageGoMIT LicenseMIT

tuidconv Build Status Go Report Card

Small utility for the extraction of datetime from UUID v1 and v2.

Supports Cassandra's timeuuid type (which is essentialy a Type 1 UUID).

GolangCI status report

Requirements

Go version 1.11+ (to support modules).

Usage

tuidconv time-uuid location

Location is set in TZ format according to the IANA Time Zone database.

If skipped, location is set to Etc/GMT.

Installation

go get -u github.com/nezorflame/tuidconv
# To use with Go modules, do the next steps as well:
cd $GOPATH/src/github.com/nezorflame/tuidconv
GO111MODULE=on go install

Example

$ tuidconv a7b6fe0a-2afd-11e7-b9f8-005056864dbf Europe/Moscow

time: 2017-04-27 06:57:38.696961 +0300 MSK
unix: 1493265458
$ tuidconv 7adb9273-88b0-11e7-80a2-005056864dbf

time: 2017-08-24 09:42:01.4921331 +0000 GMT
unix: 1503567721