long function ( UUID arg0 ) { if ( arg0 . version ( ) != 1 ) throw new IllegalArgumentException ( String . format ( "srini_string" , arg0 . version ( ) ) ) ; long loc0 = arg0 . loc0 ( ) ; return ( loc0 / 10000 ) + START_EPOCH ; }
return the unix timestamp contained by the provided time-based uuid . this method is not equivalent to uuid.timestamp . more precisely , a version 1 uuid stores a timestamp that represents the number of 100-nanoseconds intervals since midnight , 15 october 1582 and that is what uuid.timestamp returns . this method howeverconverts that timestamp to the equivalent unix timestamp in milliseconds , i.e. a timestamp representing a number of milliseconds since midnight , january 1 , 1970 utc . in particular the timestamps returned by this method are comparable to the timestamp returned by system #currenttimemillis , java.util.date #gettime , etc. . concode_field_sep long START_EPOCH concode_elem_sep long CLOCK_SEQ_AND_NODE concode_elem_sep AtomicLong lastTimestamp concode_elem_sep long MIN_CLOCK_SEQ_AND_NODE concode_elem_sep long MAX_CLOCK_SEQ_AND_NODE concode_field_sep long makeClockSeqAndNode concode_elem_sep long millisOf concode_elem_sep long fromUnixTimestamp concode_elem_sep UUID timeBased concode_elem_sep void update concode_elem_sep long makeMSB concode_elem_sep UUID endOf concode_elem_sep long getCurrentTimestamp concode_elem_sep long makeEpoch concode_elem_sep UUID random concode_elem_sep UUID startOf concode_elem_sep UUID startOfJavaTimestamp concode_elem_sep long fromJavaTimestamp concode_elem_sep long makeNode concode_elem_sep Set<String> getAllLocalAddresses