Class type Goog.‚ÄčDate.‚Äčinterval

class type interval = object..end

method add : interval Js.t -> unit Js.meth

Adds the Interval in the argument to this Interval field by field.

method clone : interval Js.t Js.meth

Returns A clone of the interval object.

method equals : interval Js.t -> bool Js.t Js.meth

Tests whether the given interval is equal to this interval. Note, this is a simple field-by-field comparison, it doesn't account for comparisons like "12 months == 1 year". Returns Whether the intervals are equal.

method getInverse : interval Js.t Js.meth

Returns Negative of this interval.

method toIsoString : bool Js.t Js.opt -> Js.js_string Js.t Js.opt Js.meth

Serializes into XML Schema duration (ISO 8601 extended). Returns An XML schema duration in ISO 8601 extended format, or null if the interval contains both positive and negative fields.