Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ebowman/commons-timeuuid
- Owner: ebowman
- License: apache-2.0
- Created: 2014-05-09T17:18:42.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-02-16T09:49:13.000Z (almost 4 years ago)
- Last Synced: 2023-04-19T17:17:25.224Z (over 1 year ago)
- Language: Scala
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 UUIDval uuid = Timeuuid()
Convert time UUID to unix timestamp
import com.gilt.timeuuid._
val uuid = Timeuuid()
val timestamp: Long = uuidConvert 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