API Docs for:
Show:

Instant Class

Defined in: model\Instant.js:10
Module: model

An instance of Instant is an abstraction of a point in time. It is composed of an ID and a unix timestamp. The timestamp is the first parameter considered during a sort of a set of instants. In case of equal timestamps, the ID order is decisive.

Item Index

Methods

getDate

() String

Defined in model\Instant.js:50

Returns a human-readable string representing the timestamp of this instant.

Returns:

String: A human-readable string representing the timestamp of this instant

getTimestamp

() Integer

Defined in model\Instant.js:23

Returns the timestamp of this instant.

Returns:

Integer: The timestamp of this instant

toString

() String

Defined in model\Instant.js:59

Returns a string representing this object.

Returns:

String: A string representing this object

validate

(
  • A
)
Array

Defined in model\Instant.js:32

The validation method of this object. This method is used to check the initialization parameters.

Parameters:

  • A Map

    map of parameters

Returns:

Array: An array of {String} errors