This function generates time-based UUIDs, meaning "version 1" UUIDs.
For more info, see http://www.webdav.org/specs/draft-leach-uuids-guids-01.txt http://www.infonuovo.com/dma/csdocs/sketch/instidid.htm http://kruithof.xs4all.nl/uuid/uuidgen http://www.opengroup.org/onlinepubs/009629399/apdxa.htm#tagcjh_20 http://jakarta.apache.org/commons/sandbox/id/apidocs/org/apache/commons/id/uuid/clock/Clock.html
Parameter | Type | Description |
---|---|---|
node | String |
Optional A 12-character hex string representing either a pseudo-node or hardware-node (an IEEE 802.3 network node). A hardware-node will be something like "017bf397618a", always with the first bit being 0. A pseudo-node will be something like "f17bf397618a", always with the first bit being 1. |
See the dojox/uuid/generateTimeBasedUuid reference documentation for more information.
string = dojox.uuid.generateTimeBasedUuid(); string = dojox.uuid.generateTimeBasedUuid("017bf397618a"); dojox.uuid.generateTimeBasedUuid.setNode("017bf397618a"); string = dojox.uuid.generateTimeBasedUuid(); // the generated UUID has node == "017bf397618a"
Returns the 'node' value that will be included in generated UUIDs.
Parameter | Type | Description |
---|---|---|
node | String |
Optional
|
Sets the 'node' value that will be included in generated UUIDs.
Parameter | Type | Description |
---|---|---|
node | String |
Optional
|