Doesn't the Chinese New Year start in late January or early February depending on the year? :) I think this script would make me a Snake whereas I'm really a Dragon.
Cheers, Ben -----Original Message----- From: Dave Lyons [mailto:[EMAIL PROTECTED]] Sent: February 20, 2003 12:12 AM To: CF-Talk Subject: Re: astrological sign <cfscript> /** * Returns the Chinese Zodiac animal corresponding to the given year of birth. * * @param yyyy Year (in the format yyyy) you want the Chinese Zodiac animal for. * @return Returns a string. * @author Sierra Bufe ([EMAIL PROTECTED]) * @version 1, December 3, 2001 */ function ChineseZodiac(yyyy) { var Animals = ListToArray("Monkey,Chicken,Dog,Pig,Mouse,Ox,Tiger,Rabbit,Dragon,Snake,H orse ,Sheep"); return Animals[(yyyy MOD 12) + 1]; } </cfscript> Dave ----- Original Message ----- From: "Benjamin Rosenthal" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, February 19, 2003 10:47 PM Subject: astrological sign > Took a look at CFLIB but didn't see anything there. > > I'm not what you would call a "believer" so I mistakenly assumed it > HAD to be more complicated than date alone. Go figure -- who knew figuring out one's personality could be so simple? ;) > > Here are the date ranges if someone wants to go to town. Yes, I'd be happy if anyone wants to post their UDF. (Michael T., tried to contact you but could't see your email anywhere.) > > Aries March 21-April 19 > Taurus April 20-May 20 > Gemini May 21-June 21 > Cancer June 22-July 22 > Leo July 23-August 22 > Virgo August 23-September 22 > Libra September 23-October 22 > Scorpio October 23 - November 21 > Sagittarius November 22-December 21 > Capricorn December 22-January 19 > Aquarius January 20-February 18 > Pisces February 19-March 20 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4