Functiondojox.uuid.getTimestamp

dojo.require("dojox.uuid._base");
defined in dojox/uuid/_base.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*/ uuidString, /*String?*/ returnType) (view source)
parametertypedescription
uuidStringString 
returnTypeStringOptional. Any of these five values: "string", String, "hex", "date", Date