[Remind-Fans] Canadian holidays .reminder files

jack-remind at mudshark.org jack-remind at mudshark.org
Thu Nov 23 00:34:53 EST 2006


On Wed, Nov 22, 2006 at 10:41:04PM -0500, David J Patrick wrote:

> Just wondering if there are existing "canned" .reminders files out there ?
> Specifically Canadian holidays.
 
> thanks amigos.. or should I say, mes amis ?

I stitched together a file based on some resources I found on the Canadian
Government's site, and the US holidays file that comes with remind. 

I've attached two files, one is some common functions, the other is the
holidays. You probably just want to include them from .reminders.. 

--Jack 

--
Jack (John) Cummings                           http://mudshark.org/
PGP fingerprint: F18B 13A3 6D06 D48A 598D  42EA 3D53 BDC8 7917 F802
-------------- next part --------------

SET Sunday    0
SET Monday    1
SET Tuesday   2
SET Wednesday 3
SET Thursday  4
SET Friday    5
SET Saturday  6

SET Sun 0
SET Mon 1
SET Tue 2
SET Wed 3
SET Thu 4
SET Fri 5
SET Sat 6

SET Jan 1
SET Feb 2
SET Mar 3
SET Apr 4
SET May 5
SET Jun 6
SET Jul 7
SET Aug 8
SET Sep 9
SET Oct 10
SET Nov 11
SET Dec 12

SET January   1
SET February  2
SET March     3
SET April     4
SET May       5
SET June      6
SET July      7
SET August    8
SET September 9
SET October   10
SET November  11
SET December  12

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 _trig()            TRIGGER(TRIGDATE())
FSET _trig2(days)       TRIGGER(TRIGDATE()+days)
FSET _back(days)        TRIGGER(TODAY()-days)

-------------- next part --------------

# Federal Holidays
#      http://www.pch.gc.ca/progs/cpsc-ccsp/jfa-ha/index_e.cfm

SET easter EASTERDATE(YEAR(TODAY()))
REM  [TRIGGER(easter-46)] MSG Ash Wednesday (%b)%
REM  [TRIGGER(easter-7)]  MSG Palm Sunday (%b)%
OMIT [TRIGGER(easter-2)]  MSG Good Friday (%b)%
OMIT [TRIGGER(easter)]    MSG Easter Sunday (%b)%
OMIT [TRIGGER(easter+1)]  MSG Easter Monday (%b)%
REM  [TRIGGER(easter+39)] MSG Ascension Day (%b)%
REM  [TRIGGER(easter+49)] MSG Pentecost (%b)%

OMIT     Jan  1         +14 MSG New Year's Day (%b)%
REM      Feb 15         +14 MSG National Flag of Canada Day (%b)%
REM      Mar 17         +14 MSG St. Patrick's Day (%b)%
REM  Mon May 18         SCANFROM [_back(7)] SATISFY 1
		        OMIT [_trig()]    +14 MSG Victoria Day (%b)%
			# Victoria Day is the Monday Preceeding May 25
REM      Jul  1		SCANFROM [_back(7)] SATISFY 1
			IF WKDAYNUM(TRIGDATE()) == Sun
			    OMIT [_trig2(+1)] +14 MSG Canada day (observed) (%b)%
			ELSE
			    OMIT [_trig()]    +14 MSG Canada day (%b)%
			ENDIF
			# Jul 2 is Canada DAY when Jul 1 is a Sunday 
REM  Mon Sep [Week_1]   SCANFROM [_back(7)] SATISFY 1
                        OMIT [_trig()] +14 MSG Labour Day (%b)%
REM      Nov 11         MSG Remembrance Day (%b)%
REM  Mon Oct [Week_2]   SCANFROM [_back(7)] SATISFY 1
                        OMIT [_trig()] +14 MSG Thanksgiving Day (%b)%
OMIT     Dec 25         +14 MSG Christmas Day (%b)%
OMIT     Dec 26         +14 MSG Boxing Day (%b)%

# Provincial Holidays
#      http://www.pch.gc.ca/progs/cpsc-ccsp/jfa-ha/prov_e.cfm

REM  Mon Feb [Week_3]   +14 MSG Family Day (Alberta) (%b)%
REM      Jun 24         +14 MSG National Day (Quebec) (%b)%
REM  Mon Aug [Week_1]   +14 MSG BC Day (%b)%
REM  Mon Aug [Week_1]   +14 MSG New Brunswick Day (%b)%
REM  Mon Aug [Week_1]   +14 MSG Heritage Day (Alberta) (%b)%
REM  Mon Aug [Week_1]   +14 MSG Civic Holida (Manitoba,Saskatchewan,Ontario) (%b)%

# Misc
REM      Feb  2         +14 MSG Ground Hog Day (%b)%
REM      Feb 14         +14 MSG Valentine's Day (%b)%
REM      Apr  1         +14 MSG April Fool's Day (%b)%
REM  Sun May [Week_2]   +14 MSG Mother's Day (%b)%
REM  Sun Jun [Week_3]   +14 MSG Father's Day (%b)%
REM      Oct 31         +14 MSG Hallowe'en (%b)%

# Daylight Savings time.
REM  Sun Apr  1         +14 MSG Daylight Savings Time starts (lose an hour) (%b)%
REM  Sun [_last(Oct)]   +14 MSG Daylight Savings Time over (gain an hour) (%b)%
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://lists.roaringpenguin.com/pipermail/remind-fans/attachments/20061122/7a05347e/attachment.pgp>


More information about the Remind-fans mailing list