Author: kmorin Date: 2011-10-26 10:41:00 +0200 (Wed, 26 Oct 2011) New Revision: 2217 Url: http://nuiton.org/repositories/revision/nuiton-utils/2217 Log: update javadoc Modified: trunk/nuiton-utils/src/main/java/org/nuiton/util/DateUtil.java Modified: trunk/nuiton-utils/src/main/java/org/nuiton/util/DateUtil.java =================================================================== --- trunk/nuiton-utils/src/main/java/org/nuiton/util/DateUtil.java 2011-10-26 08:37:42 UTC (rev 2216) +++ trunk/nuiton-utils/src/main/java/org/nuiton/util/DateUtil.java 2011-10-26 08:41:00 UTC (rev 2217) @@ -355,13 +355,12 @@ } /** - * Do the difference between the two dates in argument. The result is a number - * of years between the two dates. - * Ex : 01/01/2009 and 28/02/2011 return 2 years. + * Get the age of a person born on the date in argument. The result is a number + * of years between the birth date and now. + * Ex : 01/01/2000 returns 11 years (now date is 26/10/2011). * - * @param beginDate first date - * @param endDate second date - * @return a number of years between beginDate and endDate + * @param birthDate birth date + * @return a number of years between birthDate and now */ public static int getAge(Date birthDate) { int count = 0;
participants (1)
-
kmorin@users.nuiton.org