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_inym()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_INYM()


Syntax:        L_INYM(<expD1>,<expD2>)


Purpose:       To determine the difference, in whole years and months,
               between two dates.


Arguments:     <expD1> and <expD2> are two dates. They can be
               specified either lowest or highest date first.


Returns:       A number of type yyy.mm.  The integer part is the
               difference in whole years and can be zero.  The
               fractional part is the difference in whole months.


Examples:      dt_1 = CTOD("01/05/89")
               dt_2 = CTOD("30/04/90")
               ? L_INYM(dt_1,dt_2)              && Result: 0.11


               dt_2 = CTOD("01/05/90")
               ? L_INMY(dt_1,dt_2)              && Result: 1.00

               dt_1 = CTOD("31/03/89")
               dt_2 = CTOD("30/04/89")
               ? L_INYM(dt_1,dt_2)              && Result: 0.01

Language:      Clipper

See Also: L_INY() L_INYMD() L_INFY() L_INMTHS() L_INWKS()

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