public static long unixTimestamp(UUID uuid){
  if (uuid.version() != 1) {
    throw new IllegalArgumentException(String.format("Can only retrieve the unix timestamp for version 1 uuid (provided version %d)",uuid.version()));
  }
 else {
    return uuid.timestamp() / 10000L + START_EPOCH;
  }
}

public static long unixTimestamp ( UUID uuid ) { if ( uuid . version ( ) != 1 ) { throw new IllegalArgumentException ( String . format ( "Can only retrieve the unix timestamp for version 1 uuid (provided version %d)" , uuid . version ( ) ) ) ; } else { return uuid . timestamp ( ) / 10000L + START_EPOCH ; } }
get the unix timestamp encoded in a time - based ( type 1 ) uuid .
