MochiKit doesn't require for us to own copyright to everything, but license compatibility is an issue. Something BSD/MIT compatible is necessary in order to become part of MochiKit. Unfortunately the date_format library doesn't seem to claim any particular license at a glance. It might be worth asking the author.

Personally I would like to see something strftime inspired as that's what I'm used to... however, something equivalent but PHP inspired is also OK. MochiKit doesn't have any precedent for custom date formatting or parsing, and PHP is ubiquitous enough to where I'd accept something along those lines if it was available and license compatible.

-bob

On Jun 24, 2006, at 9:35 PM, Tom W.M. wrote:

Svend Tofte's formatDate.js might be the place to go if you need something now:

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 :-)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to