W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2014

Date Update?

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Sat, 18 Jan 2014 22:23:04 -0800
Message-ID: <CABZUbM0++S2ep9sgj9EWVrjjHq78RO8dQ-_qS__GYfcUYRbSTg@mail.gmail.com>
To: "public-script-coord@w3.org" <public-script-coord@w3.org>, WHAT Working Group <whatwg@lists.whatwg.org>
Hi All -

Just some random ideas on JavaScript Date. I understand that it was
copied from Java. Was this based on the requirement to “look like
Java” on the typical appeal to popularity marketing tact? (Java was
hot back then).

What considerations are there for codifying the behavior for
Date.parse? Middle endian date format parsing works:
Date.parse("2/11/2013"); Should this be standardized here:

Any proposals for Date.prototype.format, ala strftime?

Any replacement proposals, like a Joda-Time, or others, that treat a
Date as a set of fields rather than an object represented by a number?
And maybe with add/subtract methods without having to resort to each
field? Zero-based month and one-based days are weird, but even weirder
with MakeDay adding the extra month onto the year field:

var d = new Date(Date.now())
d.setMonth(12); // Next January, not December.

Any proposal to get the user's preferred date format?
Received on Sunday, 19 January 2014 06:23:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:51 UTC