在我们的 Java 应用程序中,我们试图从 UUID版本 1中获取 UNIX 时间。但它没有给出正确的日期时间值。
long time = uuid.timestamp();
time = time / 10000L; // Dividing by 10^4 as it's in 100 nanoseconds precision
Calendar c = Calendar.getInstance();
c.setTimeInMillis(time);
c.getTime();
有人可以帮忙吗?