IntervalPattern.withStartDateAndInterval constructor

IntervalPattern.withStartDateAndInterval(
  1. TZDateTime startDate,
  2. int interval
)
Initializes a new instance of the The start date. The interval.

Implementation

IntervalPattern.withStartDateAndInterval(TZDateTime startDate, int interval)
    : super.withStartDate(startDate) {
  if (interval < 1) {
    throw new RangeError(
        "interval is Strings.IntervalMustBeGreaterOrEqualToOne");
  }

  this.Interval = interval;
}