Paul Smith | 3 Aug 2005 21:34
Picon

On Wednesdays, after 4 weeks

Dear All

I would like to program a reminder to be shown up on a certain
Wednesday (say today), and again on the Wednesday after 4 weeks are
past, and so on, i.e., the reminder should be activated on Wednesdays
with an interval of 4 weeks in beteween. Could somebody here please
help me?

Thanks in advance,

Paul

Craig B Agricola | 3 Aug 2005 21:54
Gravatar

Re: On Wednesdays, after 4 weeks

Since every 4th Wednesday is 28 days apart, use the '*28' to make a
reminder happen every 28 days after it first triggers.  The first
trigger is up to you, but if you really wanted it to be starting today,
put today's date there.

REM 3 Aug 2005 *28 MSG Blah blah blah.

Since I'll guess that you may wonder after you do this if there's any
way to make it go every fourth Wednesday *between* two dates, use the
UNTIL keyword.

REM 3 Aug 2005 *28 UNTIL 31 Dec 2005

will give you every fourth Wednesday starting today until the end of the
year.

Remember 'man remind' will give you the manual for remind, which David
did a very complete job of writing...

 -Craig

On Wed, Aug 03, 2005 at 08:34:37PM +0100, Paul Smith wrote:
> Dear All
> 
> I would like to program a reminder to be shown up on a certain
> Wednesday (say today), and again on the Wednesday after 4 weeks are
> past, and so on, i.e., the reminder should be activated on Wednesdays
> with an interval of 4 weeks in beteween. Could somebody here please
> help me?
> 
(Continue reading)

Paul Smith | 3 Aug 2005 22:11
Picon

Re: On Wednesdays, after 4 weeks

On 8/3/05, Craig B Agricola <craig@...> wrote:
> Since every 4th Wednesday is 28 days apart, use the '*28' to make a
> reminder happen every 28 days after it first triggers.  The first
> trigger is up to you, but if you really wanted it to be starting today,
> put today's date there.
> 
> REM 3 Aug 2005 *28 MSG Blah blah blah.

Great, Craig! And, thanks,

Paul

Neil Watson | 17 Aug 2005 19:30
Picon

Canadian holidays

Is there a listing somewhere of remind commands to define annual
holidays?  I'm specifically looking for Canadian holidays.

--

-- 
Neil Watson               | Gentoo Linux
Network Administrator     | Uptime 11 days
http://watson-wilson.ca   | 2.6.11.4 AMD Athlon(tm) MP 2000+ x 2

Draco Paladin | 17 Aug 2005 19:48

Re: Canadian holidays

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:

(Continue reading)

Neil Watson | 17 Aug 2005 20:47
Picon

Re: Canadian holidays

Interesting.  Thanks.  Some of your functions don't work for me.  Did I
miss something?

rem:
/home/username/docs/remind/holidays(7): Undefined variable: May
/home/username/docs/remind/holidays(12): Expecting binary operator
/home/username/docs/remind/holidays(13): Undefined variable: Oct
/home/username/docs/remind/holidays(15): Expecting binary operator
Reminders for Wednesday, 17th August, 2005 (today):

MGS Upgrade HP4250 firmware

~/.reminder
# set some global variables

# shade current day
# RGB where 255 is white
REM [trigger(realtoday())] SPECIAL SHADE 75 179 61 %

# 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())

# includes for various calendars:
(Continue reading)

Andrey Nikanorov | 17 Aug 2005 21:02
Picon
Gravatar

Russian holidays

Does any body have Russian holiday list?
--

-- 
Nikanorov Andrey <nikanorov@...>
http://nikanorov.com
This email is: [ ] blogable [ x ] ask first [ ] private

Tildar | 18 Aug 2005 22:39
Picon

Re: Canadian holidays

you seem to be missing this:
#########################################
# Symbolic constants for month names... #
#########################################

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
(Continue reading)

Neil Watson | 18 Aug 2005 23:05
Picon

Re: Canadian holidays

On Thu, Aug 18, 2005 at 03:39:43PM -0500, Tildar wrote:
>you seem to be missing this:
>#########################################
># Symbolic constants for month names... #
>#########################################
>
>SET Jan 1
>SET Feb 2
....

Now a different error:

/home/username/docs/remind/holidays(7): Expecting binary operator
/home/username/docs/remind/holidays(12): Expecting binary operator
/home/username/docs/remind/holidays(15): Expecting binary operator

--

-- 
Neil Watson               | Gentoo Linux
Network Administrator     | Uptime 12 days
http://watson-wilson.ca   | 2.6.11.4 AMD Athlon(tm) MP 2000+ x 2

Tildar | 19 Aug 2005 21:24
Picon

Re: Canadian holidays

> /home/username/docs/remind/holidays(7): Expecting binary operator
> /home/username/docs/remind/holidays(12): Expecting binary operator
> /home/username/docs/remind/holidays(15): Expecting binary operator

That's odd, I've never seen that before.
Can you send me the relevant files off list so I can take a look.


Gmane