Are there any plans to introduce Date/Time literals?

Michael Haufe tno at thenewobjective.com
Tue Oct 8 16:20:32 PDT 2013


On Tue, Oct 8, 2013 at 4:43 PM, Andrew Fedoniouk
<news at terrainformatica.com>wrote:

> Quite often Date values are used in data exchanges in form of JS
> literals or JSON.
>
> It would be beneficial if JS (and JSON as derivative) will have an
> ability to represent dates literally  . For example:
>
> {
>    eventType: "meeting",
>    eventStarts: 2014-11-05T13:15:30Z,
>    eventDurationHours: 4
> }
>
> Technically we can allow date/time format using ISO 8601 as it is.
> That will require some additional look-ahead in tokenizer but is
> doable as far as I can tell.
>
> There are other options of course. Just wanted to know if this makes
> sense in principle.
>


http://wiki.ecmascript.org/doku.php?id=discussion:date_literal_syntax

http://wiki.ecmascript.org/doku.php?id=proposals:date_literal_syntax

https://encrypted.google.com/#q=site:https%3A%2F%2Fmail.mozilla.org%2Fpipermail%2Fes-discuss%2F+%22date+literal%22
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131008/7a614061/attachment.html>


More information about the es-discuss mailing list