The Seasons: (Was: Re: astrological sign)

2003-02-20 Thread danielEthan
This relates to a problem I was having determining the season.

I think I'll just subtract 10 days from the current quarter to return 
Spring, Summer, Autumn or Winter. It's not perfect, but the way to 
algorithmically determine the seasons is beyond my little, rabbit brain.

In case someone is interested:



On Thursday, Feb 20, 2003, at 10:29 America/Chicago, Bruce Sorge wrote:

> Because the Chinese calendar is based on the cycles of the Moon, the
> beginning of the New Year can fall anywhere between late January and 
> the
> middle of February. In 2003, it comes on February 1st. The festivities 
> begin
> 22 days prior to the New Year date and continue for 15 days afterward.
>
>> 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

~|
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




RE: astrological sign

2003-02-20 Thread Andre Mohamed
Luck for me I am a dragonno really :)

André

-Original Message-
From: Dave Lyons [mailto:[EMAIL PROTECTED]] 
Sent: 20 February 2003 16:26
To: CF-Talk
Subject: Re: astrological sign

the placemats at the chinese restaurants arent always correct u know!
haha
sure...we all wanna be the dragon:)

i think im a pig

Dave


- Original Message -
From: "Ben Arledge" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 10:49 AM
Subject: RE: astrological sign


> 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
>
>
> 
> /**
>  * Returns the Chinese Zodiac animal corresponding to the given year
of
> birth.
>  *
>  * @param    Year (in the format ) you want the Chinese Zodiac
> animal for.
>  * @return Returns a string.
>  * @author Sierra Bufe ([EMAIL PROTECTED])
>  * @version 1, December 3, 2001
>  */
> function ChineseZodiac() {
>   var Animals =
>
ListToArray("Monkey,Chicken,Dog,Pig,Mouse,Ox,Tiger,Rabbit,Dragon,Snake,H
> orse
> ,Sheep");
>   return Animals[( MOD 12) + 1];
> }
> 
>
>
>
>
>
> 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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Re: astrological sign

2003-02-20 Thread Dave Lyons
well whomever decided I was a pig needs to look my way so I can turn around
and show them a cycle of my full moon!


Dave Lyons
[EMAIL PROTECTED]
www.DreamLofts.com
www.DreamLofts-WebDesigns.com
www.Real-Singles.com (coming soon)

- Original Message -
From: "Bruce Sorge" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 11:29 AM
Subject: Re: astrological sign


> Because the Chinese calendar is based on the cycles of the Moon, the
> beginning of the New Year can fall anywhere between late January and the
> middle of February. In 2003, it comes on February 1st. The festivities
begin
> 22 days prior to the New Year date and continue for 15 days afterward.
> - Original Message -
> From: "Ben Arledge" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Thursday, February 20, 2003 9:49 AM
> Subject: RE: astrological sign
>
>
> > 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
> >
> >
> > 
> > /**
> >  * Returns the Chinese Zodiac animal corresponding to the given year of
> > birth.
> >  *
> >  * @param    Year (in the format ) you want the Chinese Zodiac
> > animal for.
> >  * @return Returns a string.
> >  * @author Sierra Bufe ([EMAIL PROTECTED])
> >  * @version 1, December 3, 2001
> >  */
> > function ChineseZodiac() {
> >   var Animals =
> > ListToArray("Monkey,Chicken,Dog,Pig,Mouse,Ox,Tiger,Rabbit,Dragon,Snake,H
> > orse
> > ,Sheep");
> >   return Animals[( MOD 12) + 1];
> > }
> > 
> >
> >
> >
> >
> >
> > 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
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Re: astrological sign

2003-02-20 Thread Bruce Sorge
Because the Chinese calendar is based on the cycles of the Moon, the
beginning of the New Year can fall anywhere between late January and the
middle of February. In 2003, it comes on February 1st. The festivities begin
22 days prior to the New Year date and continue for 15 days afterward.
- Original Message -
From: "Ben Arledge" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 9:49 AM
Subject: RE: astrological sign


> 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
>
>
> 
> /**
>  * Returns the Chinese Zodiac animal corresponding to the given year of
> birth.
>  *
>  * @param    Year (in the format ) you want the Chinese Zodiac
> animal for.
>  * @return Returns a string.
>  * @author Sierra Bufe ([EMAIL PROTECTED])
>  * @version 1, December 3, 2001
>  */
> function ChineseZodiac() {
>   var Animals =
> ListToArray("Monkey,Chicken,Dog,Pig,Mouse,Ox,Tiger,Rabbit,Dragon,Snake,H
> orse
> ,Sheep");
>   return Animals[( MOD 12) + 1];
> }
> 
>
>
>
>
>
> 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




Re: astrological sign

2003-02-20 Thread Dave Lyons
the placemats at the chinese restaurants arent always correct u know! haha
sure...we all wanna be the dragon:)

i think im a pig

Dave


- Original Message -
From: "Ben Arledge" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 10:49 AM
Subject: RE: astrological sign


> 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
>
>
> 
> /**
>  * Returns the Chinese Zodiac animal corresponding to the given year of
> birth.
>  *
>  * @param    Year (in the format ) you want the Chinese Zodiac
> animal for.
>  * @return Returns a string.
>  * @author Sierra Bufe ([EMAIL PROTECTED])
>  * @version 1, December 3, 2001
>  */
> function ChineseZodiac() {
>   var Animals =
> ListToArray("Monkey,Chicken,Dog,Pig,Mouse,Ox,Tiger,Rabbit,Dragon,Snake,H
> orse
> ,Sheep");
>   return Animals[( MOD 12) + 1];
> }
> 
>
>
>
>
>
> 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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: astrological sign

2003-02-20 Thread Ben Arledge
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



/**
 * Returns the Chinese Zodiac animal corresponding to the given year of
birth.
 *
 * @param    Year (in the format ) you want the Chinese Zodiac
animal for.
 * @return Returns a string.
 * @author Sierra Bufe ([EMAIL PROTECTED])
 * @version 1, December 3, 2001
 */
function ChineseZodiac() {
  var Animals =
ListToArray("Monkey,Chicken,Dog,Pig,Mouse,Ox,Tiger,Rabbit,Dragon,Snake,H
orse
,Sheep");
  return Animals[( MOD 12) + 1];
}






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




RE: astrological sign

2003-02-20 Thread Raymond Camden
Here ya go. Written very quickly so beware of typos. I'll get this up on
cflib one day...


function astrologicalSign(monthOfBirth,dayOfBirth) {
var y = year(now());
var sBDay = "#monthOfBirth#/#dayofBirth#/#y#";

if("3/21/#y#" lte sBDay and sBDay lte "4/19/#y#") return
"Aries";
if("4/20/#y#" lte sBDay and sBDay lte "5/20/#y#") return
"Taurus";
if("5/21/#y#" lte sBDay and sBDay lte "6/21/#y#") return
"Gemini";
if("6/22/#y#" lte sBDay and sBDay lte "7/22/#y#") return
"Cancer";
if("7/23/#y#" lte sBDay and sBDay lte "8/22/#y#") return "Leo";
if("8/23/#y#" lte sBDay and sBDay lte "9/22/#y#") return
"Virgo";
if("9/23/#y#" lte sBDay and sBDay lte "10/22/#y#") return
"Libra";
if("10/23/#y#" lte sBDay and sBDay lte "11/21/#y#") return
"Scorpio";
if("11/22/#y#" lte sBDay and sBDay lte "12/21/#y#") return
"Sagittarius";
if("12/22/#y#" lte sBDay and sBDay lte "12/31/#y#") return
"Capricorn";
if("1/1/#y#" lte sBDay and sBDay lte "1/19/#y#") return
"Capricorn";
if("1/20/#y#" lte sBDay and sBDay lte "2/18/#y#") return
"Aquarius";
if("2/19/#y#" lte sBDay and sBDay lte "3/20/#y#") return
"Pisces";
}





The astroligical sign for #dateFormat(dayOne)# is
#astrologicalSign(month(dayOne),day(dayOne))#




===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
Member of Team Macromedia

Email: [EMAIL PROTECTED]
Blog : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -Original Message-
> From: Benjamin Rosenthal [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, February 19, 2003 9:47 PM
> To: CF-Talk
> 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




Re: astrological sign

2003-02-19 Thread Dave Lyons

/**
 * Returns the Chinese Zodiac animal corresponding to the given year of
birth.
 *
 * @param    Year (in the format ) you want the Chinese Zodiac
animal for.
 * @return Returns a string.
 * @author Sierra Bufe ([EMAIL PROTECTED])
 * @version 1, December 3, 2001
 */
function ChineseZodiac() {
  var Animals =
ListToArray("Monkey,Chicken,Dog,Pig,Mouse,Ox,Tiger,Rabbit,Dragon,Snake,Horse
,Sheep");
  return Animals[( MOD 12) + 1];
}






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
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4