[Lazarus] JSON and Object Pascal DateTime

silvioprog silvioprog at gmail.com
Tue Jan 31 10:31:27 CET 2012


2012/1/31 Michael Van Canneyt <michael at freepascal.org>:
[...]
> In that case, why do you still ask ? :-)

Curiosity. :) I saw this article:
http://msdn.microsoft.com/en-us/library/bb299886.aspx. So I was really
in doubt about which type to use.

> Like I said, there is no standard, it really depends on the code in the
> browser what to send best.
> (I assume, of course, that the JSON is sent to a browser).  Sending as text
> has the advantage that you can check your server responses visually and see
> what date/time is sent. A float like 45685.25 is a valid timestamp, but
> which date/time is it ?
>
> Michael.

I separate the presentation of persistence, so for me it is
advantageous to use json as a database.

Thank you Michael, sorry for not thanking yesterday, when i wrote the
email was already dawn, and I was very sleepy. :)

-- 
Silvio Clécio
====================================
Site - <silvioprog.com.br>
LazSolutions - <code.google.com/p/lazsolutions>
====================================




More information about the Lazarus mailing list