Nice one Tim I ID birthdays with a B and anniversaries with an A so I trimmed it down to:
FSET yr(y) "" + ord($Ty - y) + "" REM Jul 19 MSG B Steve's [yr(2023)] REM Jul 19 MSG A Jack & Dianne's [yr(2022)] REM Jul 19 MSG B Jack's [yr(2021)] REM Jul 19 MSG B Dianne's [yr(2020)] REM Jul 19 MSG B Bob's [yr(2019)] Don't need year "0" (opinion) but I'm curious about the double quotes. Any way to trim those? Bruce On Tue, 18 Jul 2023 at 21:27, Tim Chase via Remind-fans <[email protected]> wrote: > > On 2023-07-18 08:32, Dianne Skoll via Remind-fans wrote: > > > If Bob's birthday is July 20, 2000, on July 20, 2023 I would like > > > remind to print out something along the lines of: > > > > > Bob's birthday - 23 years old today. > > > > REM 20 July MSG Bob's birthday - [$Ty - 2000] years old today. > > I have helper functions like these because these are in the vast > majority of my birthday/anniversary reminders: > > FSET born(y) "(" + ($Ty - y) + " year" + plural($Ty - y) + " old)" > FSET married(y) "(" + ($Ty - y) + ord($Ty - y) + ")" > > letting me have things like > > REM Apr 1 MSG Steve [born(1981)] > REM Apr 1 MSG Jack & Dianne [married(1999)] > > -tim > > > > > > > _______________________________________________ > Remind-fans mailing list > [email protected] > https://dianne.skoll.ca/mailman/listinfo/remind-fans > Remind is at https://dianne.skoll.ca/projects/remind/ _______________________________________________ Remind-fans mailing list [email protected] https://dianne.skoll.ca/mailman/listinfo/remind-fans Remind is at https://dianne.skoll.ca/projects/remind/
