Comments (3)
@nagamanikandank I don't understand -- timestamp is generated from the current timestamp, but it has to avoid duplicates, as well as translate from milliseconds of current time to 100 nsec (or whatever granularity is as specified by UUID spec), it gets translated to complaint value.
So what exactly is your problem? Timestamp in UUID is not meant to be used for knowing current time but merely for providing uniqueness and potentially loose ordering within values produced by a single host.
from java-uuid-generator.
@cowtowncoder . I am not very clear in the way I wrote the question I think. Sorry. My Question is , does Generators.timeBasedGenerator().generate()
, use the current time to generate UUID, or some random time to generate the Id
from java-uuid-generator.
@nagamanikandank It uses current time to generate time/location-based UUID (one produced by timeBasedGenerator()).
from java-uuid-generator.
Related Issues (20)
- `UUIDUtil.extractTimestamp()` is broken for versions 1 and 6 HOT 1
- Update About section of the repo HOT 1
- Add `Main-Class` manifest to make jar invoke `Jug` class HOT 1
- Add constants for "Nil UUID", "Max UUID" (from draft "new UUID" spec) in `UUIDUtil`
- H HOT 1
- Microsecond / nanosecond part of time based uuid set even if UUIDClock is millisecond precision HOT 2
- Release with UUID v7 support? HOT 5
- Enable "Reproducible Build"
- Ensure correct distinction between variant and version in documentation HOT 2
- UUID version 7 implementation sorting incorrect? HOT 11
- Type 1 UUID getTimestamp() synchronization leads to performance bottleneck HOT 5
- Add `Generators.defaultTimeBasedGenerator()` to use "default" interface address for time/based UUIDs
- TimeBasedEpochGenerator (UUIDv7) can't be provided a `UUIDClock` HOT 5
- Confusing comment wrt synchronization HOT 3
- Add `UUIDUtil.extractTimestamp()` for extracting 64-bit timestamp for all timestamp-based versions HOT 5
- Guidance on how to handle IllegalStateException from TimeBasedEpochGenerator HOT 5
- Add code coverage reporting HOT 1
- Need more testing to increase code coverage (at least to 50%) HOT 7
- What is a valid UUID HOT 5
- Extract date time from UUID V7 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-uuid-generator.