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


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


Purpose:       To determine the difference, in whole years, months and
               days, 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 yyymm.dd.  The two least significant
               digits in the integer part of the number are the whole
               months. Higher significant digits are years. the
               fractional part of the number is days.


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

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

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


Language:      Clipper

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

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