Tarlika Elisabeth Schmitz | 8 May 2009 01:18
Picon

jump forward by x working days

I have to admit deafeat:

On the last day of the quarter or, if this is not a working day, on the
next working day, interest is sent from a savings account to another
bank account. The money arrives on the 3rd working day (=2 working days
later).

On the day of receipt I need a reminder.

Example 1: interest sent on Wednesday 31st Dec 2008 arrives on 5th Jan
skipping New Year bank holiday and weekend.

Example 2: interest credited on Saturday 31st March will be sent on
Monday 2nd Apr and arrive Wednesday.

--

Best Regards,

Tarlika Elisabeth Schmitz

David F. Skoll | 8 May 2009 04:18
Favicon

Re: jump forward by x working days

Tarlika Elisabeth Schmitz wrote:

> On the last day of the quarter or, if this is not a working day, on the
> next working day, interest is sent from a savings account to another
> bank account. The money arrives on the 3rd working day (=2 working days
> later).

> On the day of receipt I need a reminder.

> Example 1: interest sent on Wednesday 31st Dec 2008 arrives on 5th Jan
> skipping New Year bank holiday and weekend.

> Example 2: interest credited on Saturday 31st March will be sent on
> Monday 2nd Apr and arrive Wednesday.

This is what I came up with.  It seems to work, but I haven't tested
it thoroughly.  It's also bizarre enough that I'm starting not to
understand it myself!

Regards,

David.

# ========================================================================
OMIT 1 Jan MSG New Year's Day

SET payday evaltrig("31 Dec OMIT Sat Sun AFTER", today() - 31)
REM [trigger(payday)] OMIT Sat Sun AFTER SCANFROM [trigger(payday)] *1 \
  SATISFY [nonomitted(payday, trigdate(), "Sat", "Sun") == 2 ] \
  MSG Interest Received
(Continue reading)

Tarlika Elisabeth Schmitz | 8 May 2009 12:28
Picon

Re: jump forward by x working days

On Thu, 07 May 2009 22:18:36 -0400
"David F. Skoll" <dfs@...> wrote:

> Tarlika Elisabeth Schmitz wrote:
> 
> > On the last day of the quarter or, if this is not a working day, on
> > the next working day, interest is sent from a savings account to
> > another bank account. The money arrives on the 3rd working day (=2
> > working days later).
> 
> > On the day of receipt I need a reminder.
> 
> [...]
> 
> This is what I came up with.  It seems to work, but I haven't tested
> it thoroughly.  It's also bizarre enough that I'm starting not to
> understand it myself!
> 
> Regards,
> 
> David.
> 
> #
> ========================================================================
> OMIT 1 Jan MSG New Year's Day
> 
> SET payday evaltrig("31 Dec OMIT Sat Sun AFTER", today() - 31)
> REM [trigger(payday)] OMIT Sat Sun AFTER SCANFROM [trigger(payday)]
> *1 \ SATISFY [nonomitted(payday, trigdate(), "Sat", "Sun") == 2 ] \
>   MSG Interest Received
(Continue reading)

David F. Skoll | 8 May 2009 14:56
Favicon

Re: jump forward by x working days

Tarlika Elisabeth Schmitz wrote:

> I was just trying to check out evaltrig() and nonomitted() but these
> functions are not described on my man pages.

Ah.  You need 03.01.06 for those functions.  You'll need to install
from source.

Regards,

David.

Shelagh Manton | 11 May 2009 15:51
Picon
Gravatar

remind-conf-mode update

I finally got my head around emacs-lisp indentation code, so now
remind-conf-mode has the ability to indent code as suggested by David
Scholl. 
There are a number of other things that have changed, I included a
function to set up the colour codes for remind and put all the
different keywords in lists to make it easy to use completion. I played
around with auto-complete and made a file to use it with remind easily.

It will no doubt make it easy in the future when I try to implement
ordinary completion for this mode. 

I also have uploaded my dailypic bash script (which probably means it
will only work on OSes that have bash installed) which takes the output
of remind that you see in the shell and makes a picture that you can
put on your desktop.

Have fun. I certainly did while writing these.

You can find them at 

http://remind-conf-mode.googlecode.com/files/dailypic.01.tar.gz
http://remind-conf-mode.googlecode.com/files/remind-conf-mode.06.tar.gz

Cheers,
Shelagh
--

-- 

----------------------------------------------------------------
Jabber: shelagh.manton@...
----------------------------------------------------------------
(Continue reading)

David F. Skoll | 31 May 2009 19:14
Favicon

Remind 03.01.07 is Released


Hello,

Remind 03.01.07 is available at http://www.roaringpenguin.com/products/remind

The changes are:

===========================================================================
ENHANCEMENT: Wherever you could write "day Mon year", the parser now
accepts "YYYY-MM-DD".  This applies on the command-line and to the
REM and OMIT keywords.  You can avoid wrapping date calculations in
the trigger() function in many cases.

ENHANCEMENT: New slide() built-in function eases some complicated reminders.
===========================================================================

The "slide()" function solves a problem that came up on the list a while
back.  The original poster wanted a reminder for the following:
A bank transferred money to her on the first working day on or after Dec. 31.
The money arrived two working days later.  In Remind 03.01.06, the solution
was rather clumsy.  In 03.01.07, it's a one-liner:

REM [slide(evaltrig("31 Dec OMIT Sat Sun AFTER", today() - 31), 2, "Sat", "Sun")] MSG Money Received

The man page explains how slide() works.

Regards,

David.

(Continue reading)


Gmane