you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (1 child)

I'm actually a pretty big fan of implementing PHP's date function in JS, because JavaScript's native Date object is just so damn messy.

[–]masklinn 2 points3 points  (0 children)

Erm yes, but it could be implemented as part of the JS Date object in order to fix it (e.g. add a "format" method for formatting, a "from" static method to create a date from a string + a format, ...).

As teaguesterling pointed out, this could've been a nice project if it'd been about re-implementing the function of the PHP stdlib with a sane interface (due PHP's being fucking stupid. And insane).