> Flex decided to be stupid like most programming languages and count
from zero
 
Actually, the ECMAScript committee -- and before that, the folks at
Mozilla who invented JavaScript -- made this decision long before Flex
existed. Adobe and the Flash and Flex teams are just trying to be
standards-compliant whereever that's appropriate.
 
- Gordon (who's been on vacation and is catching up on old email)

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Jason The Saj
Sent: Wednesday, October 03, 2007 10:18 AM
To: [email protected]
Subject: [flexcoders] Re: Dates and Months Problem



Because Flex decided to be stupid like most programming languages and
count from zero.

Which make for additional work and headache. I so miss ColdFusion's
date/time handling. It was beautiful. It was the way date/time should
be.

Of course, I also like counting from 1 instead of zero. And yes, I
understand memory arguments and advanced math arguments. But I believe
such crud should be handled by the compiler and low level languages.

You don't go and withdraw money from the bank and have a teller count
$0, $1, $2, $3,...$9. There are your $10 sir!

*shrug*

Yup, when I encountered that I was so annoyed. I had really hoped some
of the niceness of ColdFusion would rub off onto AS3. But alas, looks
like we're going the other route. *sighs*

- Jason

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "hugocorept" <[EMAIL PROTECTED]> wrote:
>
> Hello all, how you doing ^^
> 
> I want to get the month we are by number.
> Can some one explain me why is flex saying the Month we are is 9
> (Setpember) day 1 ?
> 
> 
> trace(dataHoje.toDateString())
> trace(dataHoje.month)
> trace(dataHoje.monthUTC)
> trace(dataHoje.day)
> 
> Mon Oct 1 2007
> 9
> 9
> 1
> 
> 
> Thanks for all,
> Core
>



 

Reply via email to