new DateTime(valueDef)
Creates an instance of the DateTime comparator with a specified ValueDef.
Parameters:
| Name | Type | Description |
|---|---|---|
valueDef |
olympe.dc.ValueDef | The |
- Implements:
Methods
-
compare(left, right)
-
Compares two
ODateTime. Returns:- 0 if 'left' & 'right' are equal.
- 1 if 'left' is bigger than 'right'.
- -1 if 'left' is smaller than 'right'.
Parameters:
Name Type Description leftolympe.df.ODateTime The value to the left of the comparison.
rightolympe.df.ODateTime The value to the right of the comparison.
Returns:
'0', '1', or '-1'.
- Type
- number
-
getComparedValue()
-
-
getInternalPath()
-
-
getName()
-
-
getValueDef()
-
Gets the
ValueDefused to retrieve value from the instance.Returns:
The
ValueDef.- Type
- olympe.dc.ValueDef
-
serialize()
-
-
toString()
-
Olympe SDK