/// <summary> /// Returns all occurrences of this component that start within the date range provided. /// All components occurring between <paramref name="startTime" /> and <paramref name="endTime" /> /// will be returned. /// </summary> /// <param name="startTime">The starting date range</param> /// <param name="endTime">The ending date range</param> /// <returns></returns> public IList <Occurrence> GetOccurrences(IDateTime startTime, IDateTime endTime) { return(RecurrenceUtil.GetOccurrences(this, startTime, endTime, true)); }
/// <summary> /// Gets the occurrences. /// </summary> /// <param name="startTime">The start time.</param> /// <param name="endTime">The end time.</param> /// <returns></returns> public IList <Occurrence> GetOccurrences(DateTime startTime, DateTime endTime) { return(RecurrenceUtil.GetOccurrences(this, new iCalDateTime(startTime), new iCalDateTime(endTime), true)); }
/// <summary> /// Gets the occurrences. /// </summary> /// <param name="dt">The date time.</param> /// <returns></returns> public IList <Occurrence> GetOccurrences(DateTime dt) { return(RecurrenceUtil.GetOccurrences(this, new iCalDateTime(dt), true)); }
/// <summary> /// Returns all occurrences of this component that start on the date provided. /// All components starting between 12:00:00AM and 11:59:59 PM will be /// returned. /// <note> /// This will first Evaluate() the date range required in order to /// determine the occurrences for the date provided, and then return /// the occurrences. /// </note> /// </summary> /// <param name="dt">The date for which to return occurrences.</param> /// <returns> /// A list of Periods representing the occurrences of this object. /// </returns> public IList <Occurrence> GetOccurrences(IDateTime dt) { return(RecurrenceUtil.GetOccurrences(this, dt, true)); }
/// <summary> /// Gets the occurrences. /// </summary> /// <param name="startTime">The start time.</param> /// <param name="endTime">The end time.</param> /// <returns></returns> public virtual IList <Occurrence> GetOccurrences(DateTime startTime, DateTime endTime) { return(RecurrenceUtil.GetOccurrences(this, new iCalDateTime(startTime), new iCalDateTime(endTime), EvaluationIncludesReferenceDate)); }
/// <summary> /// Returns all occurrences of this component that start within the date range provided. /// All components occurring between <paramref name="startTime" /> and <paramref name="endTime" /> /// will be returned. /// </summary> /// <param name="startTime">The starting date range</param> /// <param name="endTime">The ending date range</param> /// <returns></returns> public virtual IList <Occurrence> GetOccurrences(IDateTime startTime, IDateTime endTime) { return(RecurrenceUtil.GetOccurrences(this, startTime, endTime, EvaluationIncludesReferenceDate)); }
/// <summary> /// Gets the occurrences. /// </summary> /// <param name="dt">The date time.</param> /// <returns></returns> public virtual IList <Occurrence> GetOccurrences(DateTime dt) { return(RecurrenceUtil.GetOccurrences(this, new iCalDateTime(dt), EvaluationIncludesReferenceDate)); }