[Remind-Fans] week numbers

Terry Brown terry_n_brown at yahoo.com
Thu Sep 18 14:45:53 EDT 2008


On Thu, 18 Sep 2008 20:05:50 +0200
Guido Arnold <guido at fsfe.org> wrote:

> > SET doy today() - date(year(today()), 1, 1) + 1
> > SET wholeWeeks = (doy-week1)/7
> > SET daysLeft = iif(doy > week1, doy-week1-7*wholeWeeks, 0)
> > msg Week = [wholeWeeks + sgn(daysLeft) + sgn(week1)]  
> 
> I see how it should work, although my version (03.00.24.) complains
> "Illegal character `='", but I guess that's because I am using an
> older version?

Probably, I just pasted the above back in and it worked.  I'm using
version 03.01.05.

Given the complexity of the calculation maybe it's something remind
will grow a function for... I suppose a %substitution letter would be
good to, although the alphabet seems to be filled :-}

Cheers -Terry



More information about the Remind-fans mailing list