How to extract timestamp from UUID v1 (TimeUUID) using javascript?
问题 I use Cassandra DB and Helenus module for nodejs to operate with this. I have some rows which contains TimeUUID columns. How to get timestamp from TimeUUID in javascript? 回答1: this lib ( UUID_to_Date ) is very simple and fast!! only used native String function. maybe this Javascript API can help you to convert the UUID to date format, Javascript is simple language and this simple code can help to writing API for every language. this API convert UUID v1 to sec from 1970-01-01 all of you need: