[Remind-Fans] Canadian holidays

Draco Paladin paladin at techmonkeys.org
Wed Aug 17 13:48:34 EDT 2005


On Wed, Aug 17, 2005 at 01:30:27PM -0400, Neil Watson wrote:
> Is there a listing somewhere of remind commands to define annual
> holidays?  I'm specifically looking for Canadian holidays.

These are the ones in my .reminders file (Note: Some are specific to BC):

OMIT     Jan  1         MSG %"New Year's%" Day
REM      Feb  2         MSG %"Ground Hog Day%"
REM      Feb 14         MSG %"Valentine's%" Day
REM      Mar 17         MSG %"St. Patrick's%" Day
REM  Sun Apr  1 ++2     MSG Daylight Savings Time - %"DST starts%" %b
REM      Apr  1         MSG %"April Fool's%" Day
REM  Mon [_seclast(May)]        SCANFROM [_back(7)] SATISFY 1
            OMIT [_trig()] MSG %"Victoria Day%"
REM  Sun May [Week_2]   MSG %"Mother's Day%"
REM  Sun Jun [Week_3]   MSG %"Father's Day%"
REM      Aug  1         MSG %"BC Day%"
REM  Mon Sep [Week_1]   SCANFROM [_back(7)] SATISFY 1
                        OMIT [_trig()] MSG %"Labor Day%"
REM  Sun [_last(Oct)]   MSG Daylight Savings Time - %"DST over%"
REM      Oct 31         MSG %"Halloween%"
REM  Mon Oct [Week_2]   SCANFROM [_back(7)] SATISFY 1
                        OMIT [_trig()] MSG %"Thanksgiving%" Day
REM      Nov 11         MSG %"Rememberance Day%"
OMIT     Dec 24         MSG %"Christmas Eve%"
OMIT     Dec 25         MSG %"Christmas%" Day
OMIT     Dec 26         MSG %"Boxing Day%"

The Functions used in them are:

# Handy constants/function for specifing week of month...
SET  Week_1              1
SET  Week_2              8
SET  Week_3             15
SET  Week_4             22
FSET _last(mo)          "1 " + MON((mo%12)+1)+" --7"
FSET _seclast(mo)       "1 " + MON((mo%12)+1)+" --14"
FSET _back(days)        TRIGGER(TODAY()-days)
FSET _trig()            TRIGGER(TRIGDATE())

Hope these help.

-- 
Mit der Dummheit kämpfen Götter selbst vergebens.
(Against stupidity, even the Gods struggle in vain.)
                            - Friedrich von Schiller
Public Key: http://paladin.techmonkeys.org/pubkey.asc



More information about the Remind-fans mailing list