What is the best way to store DateTime?
This question already has an answer here:
There is actually no choice. You have to introduce some kind of "base time", typically UTC (but depends upon particular needs) along with a properly tested yet reliable "relative system" (which might be as easy as specifying +/- with respect to the UTC time). Such a solution would indeed satisfy all the needs you mentioned and proved to be "best practice" for such apps like market-trading account systems, where the date and time is one of the most valuable factors.
链接地址: http://www.djcxy.com/p/29352.html上一篇: Python tzinfo和夏令时
下一篇: 什么是存储DateTime的最佳方式?