Extracted from Pike v7.8 release 866 at 2015-06-14.
pike.ida.liu.se
[Top]
Calendar
Calendar.Event
Calendar.Event.Event

Method Calendar.Event.Event()->scan()


Method scan

array(Calendar.TimeRanges.TimeRange) scan(Calendar.TimeRanges.TimeRange in)

Description

This calculates the eventual events that is contained or overlapped by the given timerange. scan uses next , if not overloaded.

Example

Calendar.Event.Easter()->scan(Calendar.Year(2000)) => ({ Day(Sun 23 Apr 2000) })

Note

scan can return an array of overlapping timeranges.

This method must use in->calendar_object->type to create the returned timeranges, and must keep the ruleset.