Functiondojox.uuid.Uuid.getTimestamp

dojo.require("dojox.uuid.Uuid");
defined in dojox/uuid/Uuid.js

If this is a version 1 UUID (a time-based UUID), this method returns the timestamp value encoded in the UUID. The caller can ask for the timestamp to be returned either as a JavaScript Date object or as a 15-character string of hex digits.

Usage

function (/*String?*/ returnType) (view source)
parametertypedescription
returnTypeStringOptional. Any of these five values: "string", String, "hex", "date", Date