[Remind-Fans] moveable feast

David F. Skoll dfs at roaringpenguin.com
Mon Dec 28 11:39:44 EST 2009


Stephen Ramsay wrote:

> The Feast of the Holy Family falls on the first Sunday of the Octave
> of Christmas (that is, the first Sunday that falls within the eight
> days following Christmas).  However, if Christmas falls on a Sunday,
> that holiday is transferred to December 30th.

Hmmm.. tricky.  How about:

# Get the date of Christmas
REM 25 December SCANFROM [today()-14] SATISFY 1
SET christmas trigdate()

# If Christmas is on a Sunday, then feast is on the 30th
IF wkdaynum(christmas) == 0
REM 30 December +2 MSG Holy Family (F)
ELSE
# Else it's on the Sunday following Christmas
REM Sun 25 December +2 MSG Holy Family (F)
ENDIF

It might be possible to do it all in one REM command with a SATISFY
expression.  Anyone up for that? :)

Regards,

David.



More information about the Remind-fans mailing list