[Remind-Fans] SINCE verb

Paul Palmer pap4628 at bjc.org
Fri Jul 22 13:26:56 EDT 2016


>> Date: Thu, 21 Jul 2016 17:29:42 -0300
>> From: Sector11
>>
>> Maybe a confusion with this "since":
>> =============
>> FSET fname(args) expr

>>      FSET since(x) ord(year(trigdate())-x)

In Defs.rm (which is part of remind), there is

############################################################
# Function to calculate number of years since a given year #
# or number of months since a given month and year...      #
############################################################

FSET _yr_num(yr)                ORD(YEAR(TRIGDATE()) - yr)
FSET _mo_num(mo, yr)            ORD(12 * (YEAR(TRIGDATE()) - yr) + \
                                        MONNUM(TRIGDATE()) - mo)

# Here's an example of how to use them:
#REM 1 Nov ++12 MSG %"Dean's [_yr_num(1984)] birthday%" is %b.
#REM 1 MSG Dean's [_mo_num(11, 1984)] 'monthly' anniversary


More information about the Remind-fans mailing list