Skip to content

CLASS ndi.ido

  ndi.ido - identifier object class for ndi

  This class creates and retrieves unique identifiers.  The identifier is a hexadecimal string
   based on both the current date/time and a random number. When identifiers are sorted in
   alphabetical order, they are also sorted in the order of time of creation.

  **Example**:
    i = ndi.ido();
    id = i.id(), % view the id that was created


Superclasses

did.ido

Properties

Property Description
identifier

Methods

Method Description
id return the identifier of an DID.IDO object
ido identifier object class for ndi
isvalid is a unique ID number valid?
unique_id Generate a unique ID number for DID databases (Static method)

Methods help

id - return the identifier of an DID.IDO object

IDENTIFIER = ID(DID.IDO_OBJ)

  Returns the unique identifier of an DID.IDO object.

Help for ndi.ido/id is inherited from superclass did.ido

ido - identifier object class for ndi

This class creates and retrieves unique identifiers.  The identifier is a hexadecimal string
   based on both the current date/time and a random number. When identifiers are sorted in
   alphabetical order, they are also sorted in the order of time of creation.

  **Example**:
    i = ndi.ido();
    id = i.id(), % view the id that was created

    Documentation for ndi.ido/ido
       doc ndi.ido

isvalid - is a unique ID number valid?

B = isvalid(ID)

  Returns true if ID matches the structure of a did.ido identifier and
  false otherwise. A valid ID must have 16 hexadecimal digits in
  0-9 or a-f, an underscore, and then 16 more hexadecimal digits.

Help for ndi.ido.isvalid is inherited from superclass did.ido

unique_id - Generate a unique ID number for DID databases (Static method)

ID = DID.IDO.UNIQUE_ID()

  Generates a unique ID character array based on the current time and a random
  number. It is a hexadecimal representation of the serial date number in
  UTC Leap Seconds time. The serial date number is the number of days since January 0, 0000 at 0:00:00.
  The integer portion of the date is the whole number of days and the fractional part of the date number
  is the fraction of days.

  ID = [NUM2HEX(SERIAL_DATE_NUMBER) '_' NUM2HEX(RAND)]

  See also: NUM2HEX, NOW, RAND

Help for ndi.ido.unique_id is inherited from superclass did.ido