The duration of a single repition of the interval
The end of all intervals, if this is a repeating interval then this is then end of the last repitition. Returns an invalid moment if there are infinite positive repetitions
Index of the first occurrence, Number.NEGATIVE_INFINITY if the interval is reverse repeating indefinitely
True if the schedule is infintely long
True if the schedule progresses infinitely in the negative
True if the schedule progresses infinitely in the positive
True if the schedule repeats (has more than one occurrence)
Index of the last occurrence, Number.POSITIVE_INFINITY if the interval is forward repeating indefinitely
The number of repetitions
The start of all intervals, if this is a repeating interval then this is the start of the first repitition. Returns an invalid moment if there are infinite negative repetitions
Get the recurrence (the index of the occurrence) after the supplied time
Moment or something that it parses (if a number, then in epoc ms)
Get the occurrence happening after the supplied date. Throws Error if there is no occurrence after the supplied date
Get a list of the occurrences for an interval, if no parameters are supplied then all occurrences are returned.
Generated using TypeDoc
Class to describe ISO 8601 time intervals, including the repeating functionality.
The class is primarily backed by moment.js and contains the start, end, duration, and number of repetitions found in the ISO8601 string or overridden in the constructor. Typical usage of the class is to construct one with a ISO8601 string in the constructor.