Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_eyears() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_EYEARS()

 DESCRIPTION

 C_EYEARS() returns the elapsed years between two given dates.

 NOTES

 The elapsed years is always returned as a positive number,
 therefore, the order of the first and second date parameters makes
 no difference.

 SYNTAX

 C_EYEARS(date1, date2)

 PARAMETERS

 date1 (D/C) is the first date to determine the elapsed years.  The
 date1 argument may be specified as either a date variable or a
 character string ("DD/MM/YY").

 date2 (D/C) is the second date to determine the elapsed years.  The
 date2 argument may be specified as either a date variable or a
 character string ("DD/MM/YY").

 RETURNS

 C_EYEARS() returns the number of years between the two dates.

 EXAMPLES

 date1 = ctod("01/01/90")
 date2 = ctod("01/01/91")

 ? c_eyears("1/1/90","12/31/90") --> 0     && 0
 ? c_eyears("1/1/90","12/31/92") --> 2     && 2 years

 && 1 year elapsed, note that the order makes no difference
 ? c_eyears(date1,date2)         --> 1     && 1
 ? c_eyears(date2,date1)         --> 1     && 1
 ? c_eyears("1/1/90","1/1/2090") --> 100   && 100 years


See Also: C_EDAYS() C_EMONTHS()

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