Extracted from Pike v7.4 release 341 at 2005-11-30.
pike.ida.liu.se
[Top]
predef::
Calendar
Calendar.Event
Calendar.Event.Event

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


Method scan

array(TimeRange) scan(TimeRange in)

Description

This calculates the eventual events that is contained or overlapped by the given timerange.

Example: Event.christmas_eve->scan(Year(2000)) => ({ Day(Sun 24 Dec 2000) })

scan uses next if not overloaded.

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.