Pike v8.1 release 6

Class Calendar.Event.Monthday_Weekday

Inheritance graph
Calendar.Event.Event Calendar.Event.Day_Event Calendar.Event.Monthday_Weekday
Description

This class represents the event that a given gregorian day of month appears a given weekday. For instance, Event.Monthday_Weekday(13,5)->next(Day()) finds the next friday the 13th.


Inherit Day_Event

inherit Day_Event : Day_Event


Method create

Calendar.Event.Monthday_Weekday Calendar.Event.Monthday_Weekday(int month_day, int weekday)

Description

The event is created by a given month day, and a weekday number (1=Monday, 7=Sunday).

Note

The week day numbers used are the same as the day of week in the ISO calendar - the Gregorian calendar has 1=Sunday, 7=Saturday.