|
Have you looked into the AS 3 libraries?
I found this on dates manipulation: http://weblogs.macromedia.com/as_libraries/docs/corelib/ Look at DateUtil From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Tuppeny > 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 can't. Because once you detach the
length of time from the actual dates, you can't figure out the number of months
accurately (because of the difference in days). I originally did GetTime of
both dates, and then created a date from the difference (and took away 1970
years), but the length was then out by a number of days! :-( > If I were redesigning it, it wold at least ook like this:
>year - why fullYear? This got me too... .year appears in the
intellisense, but when I used it, I got an error - WTF?! It wouldn't be so bad if they'd actually
added a 2-figure year, but they dumped .year, and added fullYear. Grrr! From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Pan Troglodytes Well, it helped when I figured out I could do things like date.date +=
12 and it would automatically correct for rolling over months/years. But
at the very least, there needs to be a built-in daysBetween function.
Yes, yes, I know you can do the getTime() arithmetic. But every time you
have to fall back to that, it feels kludgy. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
- RE: [flexcoders] Difference between two dates Tracy Spratt
- RE: [flexcoders] Difference between two dates Gordon Smith
- RE: [flexcoders] Difference between two dates Gordon Smith
- Re: [flexcoders] Difference between two dates Pan Troglodytes
- Re: [flexcoders] Difference between two dates Douglas Knudsen
- RE: [flexcoders] Difference between two dates Kelly Birr
- [flexcoders] Re: Difference between two dates Tim Hoff
- RE: [flexcoders] Re: Difference between t... Kelly Birr
- RE: [flexcoders] Re: Difference betw... Gordon Smith
- RE: [flexcoders] Difference between two dates Daniel Tuppeny

