Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Library for Clipper - <b>l_addyear()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_ADDYEAR()


Syntax:        L_ADDYEAR(<expD>,<expN>)


Purpose:       To add or subtract years to or from a given date.


Arguments:     <expD> is the date to be altered.

               <expN> is the number of years by which to change the
               date. It can be a positive or negative number.


Returns:       A Clipper date.


Usage:         To add or subtract whole years to a date


Examples:      date_var = CTOD("01/01/89")
               ? L_ADDYEAR(date_var,2)       && Result: 01/01/91
               ? L_ADDYEAR(date_var,-3)      && Result: 01/01/86


Language:      Clipper

See Also: L_ADDDAY() L_ADDMONTH() L_SUBMONTH()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson