protected UUID timeUUID(Temporal time, long clockSequence, byte[] node, int offset) {
// TODO add checks
Duration duration = Duration.between(TimeUuid.TIMESTAMP_ZERO, time);
// Number of 100 ns intervals in one second: 1000000000 / 100 = 10000000
long timestamp = duration.getSeconds() * 10000000 + duration.getNano() / 100;
protected UUID timeUUID(Temporal time, long clockSequence, byte[] node, int offset) {
// TODO add checks
Duration duration = Duration.between(TimeUuid.TIMESTAMP_ZERO, time);
// Number of 100 ns intervals in one second: 1000000000 / 100 = 10000000
long timestamp = duration.getSeconds() * 10000000 + duration.getNano() / 100;