Are there any plans to introduce Date/Time literals?

Andrew Fedoniouk news at terrainformatica.com
Tue Oct 8 14:43:30 PDT 2013


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.




-- 
Andrew Fedoniouk.

http://terrainformatica.com


More information about the es-discuss mailing list