Re: [flexcoders] AS3 Date month starting at 0?

2006-03-05 Thread Peter Hall
Ah... I should probably read the entire thread sometimes, rather than just jumping in the middle! :-) Peter On 3/4/06, Gordon Smith [EMAIL PROTECTED] wrote: Yes, but that's not what the code I commented on was doing. It was doing new Date(2006, 03, 22); I was simply

Re: [flexcoders] AS3 Date month starting at 0?

2006-03-04 Thread Peter Hall
I'm sure it's doing slightly more than an implicit coercion, when you do something like: new Date(Mar 10 20:00 2006); ;-) Peter On 3/4/06, Gordon Smith [EMAIL PROTECTED] wrote: Sure, it's perfectly happy to coerce a string like 2006 to the number 2006. But if you pass 2006

RE: [flexcoders] AS3 Date month starting at 0?

2006-03-04 Thread Gordon Smith
. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Peter Hall Sent: Saturday, March 04, 2006 9:59 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS3 Date month starting at 0? I'm sure it's doing slightly more than an implicit

Re: [flexcoders] AS3 Date month starting at 0?

2006-03-03 Thread Johannes Nel
this is expected behaviour i thinkOn 3/3/06, Sönke Rohde [EMAIL PROTECTED] wrote: Hi,Using the AS3-Date-Class the first time I recognized that the month isstarting at 0 means 0 is January. Is this the expected behaviour?Example:var d:Date = new Date(2006,03,22); trace(date + d); // date Sat

RE: [flexcoders] AS3 Date month starting at 0?

2006-03-03 Thread Sönke Rohde
but why is month startingat 0 and day at 1? seems very strange to me. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Johannes NelSent: Friday, March 03, 2006 3:04 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] AS3 Date month starting

Re: [flexcoders] AS3 Date month starting at 0?

2006-03-03 Thread Peter Hall
It's the way it works in AS2, and the way it works in _javascript_. I don't know why it is designed like that, but it is correct. Peter On 3/3/06, Sönke Rohde [EMAIL PROTECTED] wrote: but why is month startingat 0 and day at 1? seems very strange to me. -- Flexcoders Mailing

Re: [flexcoders] AS3 Date month starting at 0?

2006-03-03 Thread Paul Hastings
Peter Hall wrote: It's the way it works in AS2, and the way it works in JavaScript. I don't know why it is designed like that, but it is correct. because java does it that way? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives:

RE: [flexcoders] AS3 Date month starting at 0?

2006-03-03 Thread Geoffrey Williams
month starting at 0? but why is month startingat 0 and day at 1? seems very strange to me. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes Nel Sent: Friday, March 03, 2006 3:04 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS3

Re: [flexcoders] AS3 Date month starting at 0?

2006-03-03 Thread Darron J. Schall
Sönke Rohde wrote: Hi, Using the AS3-Date-Class the first time I recognized that the month is starting at 0 means 0 is January. Is this the expected behaviour? Yeah - it's supposed to be like this (and has been like this for a long time). Not a bug, sorry, you'll just have to account for the

RE: [flexcoders] AS3 Date month starting at 0?

2006-03-03 Thread Sönke Rohde
Hi, Using the AS3-Date-Class the first time I recognized that the month is starting at 0 means 0 is January. Is this the expected behaviour? Yeah - it's supposed to be like this (and has been like this for a long time). Not a bug, sorry, you'll just have to account for the

RE: [flexcoders] AS3 Date month starting at 0?

2006-03-03 Thread Gordon Smith
January being month 0 in the Date class is required by the ECMA-262 standard that we're following, since we want AS3 to be compatible with Ecmascript. Dunno what's going on with the GMT. That looks weird. BTW, you should be passing numbers, not strings, to the Date constructor. - Gordon

Re: [flexcoders] AS3 Date month starting at 0?

2006-03-03 Thread Peter Hall
Gordon, >From what I can tell, Date is perfectly happy to take a string in its constructor. This is new in AS3... Peter On 3/3/06, Gordon Smith [EMAIL PROTECTED] wrote: January being month 0 in the Date class is required by the ECMA-262 standard that we're following, since we want AS3 to be

RE: [flexcoders] AS3 Date month starting at 0?

2006-03-03 Thread Gordon Smith
To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS3 Date month starting at 0? Gordon, >From what I can tell, Date is perfectly happy to take a string in its constructor. This is new in AS3... Peter On 3/3/06, Gordon Smith [EMAIL PROTECTED] wrote: January being month 0 in the D