[fpc-pascal] Extended, Currency and TDateTime memory layout

2010-08-06 Thread Felipe Monteiro de Carvalho
Hello, I am interfacing with a server written in Delphi via network and it sends over data. The server sends some data types, and among the hardest ones to read are Currency and TDateTime. The server is undocumented and does some strange transformations of the data using RTTI to pass properties.

Re: [fpc-pascal] Extended, Currency and TDateTime memory layout

2010-08-06 Thread Michael Van Canneyt
On Fri, 6 Aug 2010, Felipe Monteiro de Carvalho wrote: Hello, I am interfacing with a server written in Delphi via network and it sends over data. The server sends some data types, and among the hardest ones to read are Currency and TDateTime. The server is undocumented and does some

Re: [fpc-pascal] Extended, Currency and TDateTime memory layout

2010-08-06 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: Similarly, it seams that most often TDateTime=double. Any docs on the memory layout of TDateTime? TDateTime IS a double. The integer part is the number of days since 1/1/1900 No, since 12/30/1899. While the above definition was