Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ebowman/commons-timeuuid

Generates Version 1 UUIDs
https://github.com/ebowman/commons-timeuuid

Last synced: about 1 month ago
JSON representation

Generates Version 1 UUIDs

Awesome Lists containing this project

README

        

# Commons Timeuuid

An timeuuid library in Scala base on http://www.ietf.org/rfc/rfc4122.txt which generates version 1 UUIDs.

## Example Usage
Generates a new unique time based UUID

val uuid = Timeuuid()

Convert time UUID to unix timestamp

import com.gilt.timeuuid._

val uuid = Timeuuid()
val timestamp: Long = uuid

Convert time UUID to unix date

import com.gilt.timeuuid._

val uuid = Timeuuid()
val date: Date = uuid

## License
Copyright 2014 Gilt Groupe, Inc.

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0