This could go to my head ya know

Submitted by Falken on
Got a very nice email this morning, and because the power is down to the dev. DB I thought I'd post it :

"I always know it's time for me to go to bed when you start popping up all over Flexcodrers :).
We've never met, but I want to let you know, you do a fantastic job of the Flex community. It's guys like you that help build the user base, which in turn, makes my blog look a lot more reasonable. Keep up the good work. I always enjoy seeing my inbox filled with you imparting wisdom :)"

Gotta keep up my hero'ing duties ([node:1346]), so I'm posting a DateUtil ActionScript class that has a few handy functions in it, include a string to date parser that is eight times better than Adobe's (see attached screen shot of the test cases). I rock :-)

And I still have a series of articles on building tiered service architectures in ColdFusion, Reactor and ColdSpring to write about.
Sections
Attachment Size
DateUtils.png36.76 KB 36.76 KB

Submitted by Kris (not verified) on Fri, 07/03/2009 - 15:48

Permalink

Great class - but when you were saying 8 times better, i was thinking you were talking about speed. I'd have liked to see a speed comparison.

Submitted by admin on Fri, 07/10/2009 - 09:14

In reply to by Kris (not verified)

Permalink

String parsing is always fairly slow, and as mine parses more formats than Adobe's, I expect it is a little slower - esp. if the string has to 'fall down' many checks before it is recognised.