View Single Post
Old 11-25-2005, 09:06 AM   PM User | #24
Kor
Red Devil Mod


 
Kor's Avatar
 
Join Date: Apr 2003
Location: Bucharest, ROMANIA
Posts: 8,478
Thanks: 58
Thanked 379 Times in 375 Posts
Kor has a spectacular aura aboutKor has a spectacular aura about
Quote:
dif is the number of years between the two date objects. The conditional statement will check if the value of dif needs to be change by -1 or not.
It will subtract 1 if today's month is less than the input month.
Or it will subtract 1 if today's month is equal to the input month and today's day of the month is less than the input's day of the month.
Exactly. About the Number() liorean had a comrehensive answer above.
Quote:
It seems a lot of people are working the date object these days.
There must be a Date festival or contest somewere...
__________________
KOR
Offshore programming
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Kor is offline   Reply With Quote