Class

ac.DateDataType

Represents a date. NOTE You can use ac.DateDataTypeParser in order to create a ac.DateDataType instance.

Summary

Methods
compareTo(other)
equals(other)
fromDouble(value)
getValue()
toString()

Method detail

compareTo(other)

Compares this ac.DateDataType to another.

Parameters

* other (ac.DateDataType) the other ac.DateDataType to compare to this one.

Returns

* the value 0 if date is equal to the other's date, a value less than 0 if date is less than other's date (i.e. before) and a value greater than 0 if date is greater than other's date (i.e. after).

equals(other)

Checks whether this ac.DateDataType is equal to another.

Parameters

* other (ac.DateDataType) the other ac.DateDataType to compare to this one.

Returns

* true if the date of this ac.DateDataType is equal to the other's, false otherwise.

fromDouble(value)

Returns the numeric value. For ac.DateDataType, the Date.getTime() date's milliseconds since Jan. 1st 1970} is returned.

Parameters

* value (numeric) the value to create the new ac.DateDataType from.

Returns

* the new ac.DateDataType

getValue()

Returns the numeric value. For ac.DateDataType, the Date.getTime() date's milliseconds since Jan. 1st 1970} is returned.

Returns

* numeric value

toString()

Returns the wrapped date of this ac.DateDataType as a String.

Returns

* the wrapped date as a string.