Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请让我知道我们如何使用 hector 或任何 java 客户端检索当前时间戳
您可以使用以下方式使用 hector 获取当前时间
long time =TimeUUIDUtils.getTimeFromUUID(TimeUUIDUtils.getUniqueTimeUUIDinMillis()); Timestamp stamp = new Timestamp(time); Date date = new Date(stamp.getTime()); System.out.println(date);