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

Method Calendar.Event.Day_Event()->scan_jd()


Method scan_jd

int scan_jd(Calendar.Calendar realm, int jd, int(-1..-1)|int(1..1) direction)

Description

These methods has to be defined, and is what really does some work. It should return the next or previos julian day (>jd) when the event occurs, or the constant NODAY if it doesn't.

Parameter direction
1

Forward (next),

-1

Backward (previous).