dojox/uuid/generateTimeBasedUuid (version 1.10)

Summary

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

Usage

generateTimeBasedUuid(node);
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.

Examples

Example 1

string = dojox.uuid.generateTimeBasedUuid(); string = dojox.uuid.generateTimeBasedUuid("017bf397618a"); dojox.uuid.generateTimeBasedUuid.setNode("017bf397618a"); string = dojox.uuid.generateTimeBasedUuid(); // the generated UUID has node == "017bf397618a"

Property Summary

Method Summary

  • getNode() Returns the 'node' value that will be included in generated UUIDs.
  • isValidNode(node)
  • setNode(node) Sets the 'node' value that will be included in generated UUIDs.

Properties

_generator

Methods

getNode()

Returns the 'node' value that will be included in generated UUIDs.

isValidNode(node)
Parameter Type Description
node String
Optional
setNode(node)

Sets the 'node' value that will be included in generated UUIDs.

Parameter Type Description
node String
Optional
Error in the documentation? Can’t find what you are looking for? Let us know!