http://www.svendtofte.com/code/date_format/
It's PHP inspired, and he recently cleaned it up a great deal (there used to be an eval() in there!). Before that I had messed around with his code a bit, trying to add %-style codes (more Pythonic, like strftime). My (mostly untested) work is available here:
http://freecog.net/scripts/Date.js?raw
However, if the goal is something to integrate with MochiKit, then copyright and licencing issues probably dictate that something be written from scratch.
On 6/24/06, Lalo Martins <
[EMAIL PROTECTED]> wrote:
My personal wishlist item: a strftime function in DateTime or Format.
I often find myself custom-formatting Date objects, and it's rather
annoying. Alternatively, something based on the PHP date formatter
would also be ok.
I might even write it, although I'm not sure my _javascript_ is already
in the mochikit standard of quality :-)
best,
Lalo Martins
--
personal: http://www.laranja.org/
technical: http://lalo.revisioncontrol.net/
GNU: never give up freedom http://www.gnu.org/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---