[Remind-Fans] Overdue items (cont.)
Theodore M Rolle, Jr.
stercor at gmail.com
Thu Dec 11 17:20:37 EST 2014
I've always thought "1 days" comes from lazy programming or illiterate
programmers.
On Wed, Dec 10, 2014 at 2:21 PM, <morel_rf at armory.com> wrote:
> Oops. The plural() isn't needed. Substitute
>
> abs(date-today()) + " days ago",\
>
> If handling both singular and plural, and if wanted to use plural(),
> need to handle the -1 case with, e.g., FSET _plural(x) plural(abs(x))
> (in Remind version 03.01.05, anyway.)
>
> Tony
>
>
> > FSET _dayinterval(date,phrasing) iif(\
> > ((date-today()) < -1),\
> > abs(date-today()) + " day" + plural(date-today()) + " ago",\
> > ((date-today()) == -1),\
> > "yesterday",\
> > ((date-today()) == 1),\
> > "tomorrow",\
> > ((date-today()) > 1),\
> > iif(phrasing == "indaystime", "in ","") + \
> > (date-today()) + \
> > iif(phrasing == "indaystime", " days' time", \
> > phrasing == "daysfromnow", " days from now", ""),\
> > "today")
> _______________________________________________
> Remind-fans mailing list
> Remind-fans at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/cgi-bin/mailman/listinfo/remind-fans
> Remind is at http://www.roaringpenguin.com/products/remind
>
More information about the Remind-fans
mailing list