[Remind-Fans] Wyrd V Google Calendar

Fintan Gaughan fgaughan at gmail.com
Thu Mar 1 11:38:45 EST 2007


Having Remind and Wyrd set up and very happy with it.
Switchng from google to wyrd is painless and i had noticed remind have
some function that google haven't

For axample reading the manual under  USER-DEFINED FUNCTIONS
"In addition to the built-in functions, Remind allows you to define
your own functions.  The FSET command does this for you:

FSET fname(args) expr

Fname is the name of the function, and follows the convention for
naming variables.  Args is a comma-separated list of arguments, and
expr is an expression.  Args can be empty, in which case you define a
function taking no parameters.  Here are some examples:

	FSET double(x) 2*x
	FSET yeardiff(date1, date2) year(date1) - year(date2)
	FSET since(x) ord(year(trigdate())-x)



The last function is useful in birthday reminders.  For example:

	REM 1 Nov +12 MSG Dean's [since(1984)] birthday is %b.



Dean was born in 1984.  The above example, on 1 November 1992, would print:
Dean's 8th birthday is today."




I have not been able to get this to work does the fset have to be
somewhere as typing
REM 1 Nov +12 MSG Dean's [since(1984)] birthday is %b. in text file
produce errors

Fintan

--



More information about the Remind-fans mailing list