[fpc-pascal] JSON dates
Reinier Olislagers
reinierolislagers at gmail.com
Thu Feb 21 10:59:09 CET 2013
Hi,
Creating a client/server scanning application that uses JSON to exchange
data.
Noticed there's no support for dates in the JSON specs; apparently
various approaches are used (Unix epoch/ISO 8601 date strings/something
Microsoft did).
Noticed that Firefox gives this:
new Date().toJSON();
/*
2013-02-21T09:47:42.467Z
*/
which looks like an ISO date to me.
Currently FPC JSON gives a huge number for current date/time, presumably
just the representation of TDateTime.
Is this ISO 8601 format currently the most widely used? It seems the
most sane to me.
Thanks,
Reinier
More information about the fpc-pascal
mailing list