Re: [flexcoders] Difference between two dates

2006-06-28 Thread Pan Troglodytes
standards that we've followed in ActionScirpt 3. - Gordon From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Pan Troglodytes Sent: Friday, June 23, 2006 8:02 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Difference between two dates

RE: [flexcoders] Difference between two dates

2006-06-27 Thread Daniel Tuppeny
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Daniel Tuppeny Sent: Monday, June 26, 2006 1:03 AMTo: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Difference between two dates Since the Date class is specified by the EcmaScript-262

Re: [flexcoders] Difference between two dates

2006-06-26 Thread Douglas Knudsen
@yahoogroups.com] On Behalf Of Daniel TuppenySent: Monday, June 26, 2006 1:03 AMTo: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Difference between two dates Since the Date class is specified by the EcmaScript-262 standard, we're not going to change it That's fair enough, but as things

RE: [flexcoders] Difference between two dates

2006-06-26 Thread Kelly Birr
forFlex 2.1 - Kelly From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas KnudsenSent: Monday, June 26, 2006 11:56 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Difference between two dates http://jeff.mxdj.com/datediff_for_actionscript.htmperhaps this would

RE: [flexcoders] Difference between two dates

2006-06-23 Thread Daniel Tuppeny
I think I need more coffee The following code (which I'm sure is correct!), returns around 2.8 when I'm expecting around 3.2. Anyone spot my error? public static function getMonths(startDate:Date, endDate:Date):Number{if (startDate endDate){var tmp:Date = endDate;endDate =

RE: [flexcoders] Difference between two dates

2006-06-23 Thread Daniel Tuppeny
I was using .day instead of .date TFI Friday! =) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel TuppenySent: 23 June 2006 15:33To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Difference between two dates I think I need more coffee

Re: [flexcoders] Difference between two dates

2006-06-23 Thread Pan Troglodytes
@yahoogroups.com] On Behalf Of Daniel TuppenySent: 23 June 2006 15:33To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Difference between two dates I think I need more coffee The following code (which I'm sure is correct!), returns around 2.8 when I'm expecting around 3.2. Anyone spot my

RE: [flexcoders] Difference between two dates

2006-06-23 Thread Daniel Tuppeny
: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Difference between two dates I swear, I really think the date class was designed by a crazy man. You hear that Adobe? - CRAZY! :D On 6/23/06, Daniel Tuppeny [EMAIL PROTECTED] wrote: I was using .day instead of .date TFI

Re: [flexcoders] Difference between two dates

2006-06-23 Thread Pan Troglodytes
] On Behalf Of Pan TroglodytesSent: 23 June 2006 16:02To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Difference between two dates I swear, I really think the date class was designed by a crazy man. You hear that Adobe? - CRAZY! :D On 6/23/06, Daniel Tuppeny [EMAIL PROTECTED] wrote

RE: [flexcoders] Difference between two dates

2006-06-23 Thread Daniel Tuppeny
. Grrr! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pan TroglodytesSent: 23 June 2006 16:53To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Difference between two dates Well, it helped when I figured out I could do things like date.date += 12 and it would

RE: [flexcoders] Difference between two dates

2006-06-23 Thread Tracy Spratt
:01 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Difference between two dates things like date.date += 12 I didn't know that. That's certainly a bit better! I was frustrated there was no AddDays() etc.! Yes, yes, I know you can do the getTime() arithmetic You

RE: [flexcoders] Difference between two dates

2006-06-23 Thread Gordon Smith
PROTECTED] On Behalf Of Pan Troglodytes Sent: Friday, June 23, 2006 8:53 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Difference between two dates Well, it helped when I figured out I could do things like date.date += 12 and it would automatically correct for rolling over

RE: [flexcoders] Difference between two dates

2006-06-23 Thread Gordon Smith
: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pan Troglodytes Sent: Friday, June 23, 2006 8:02 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Difference between two dates I swear, I really think the date class was designed by a crazy man. You hear that Adobe