Optimal way to store datetime values in SQLite database (Delphi)

后端 未结 5 1269
无人及你
无人及你 2021-02-08 16:29

I will be storing datetime values in an SQLite database (using Delphi and the DISqlite library). The nature of the db is such that it will never need to be transferred between c

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-08 16:52

    One compromise would be to stick with REAL values, but store them as julian dates by using Delphi's DateTimeToJulianDate. That way they remain fast for reading, there's little performance lost in the converation, and they're still in a format that makes sense outside of Delphi.

提交回复
热议问题