Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从这个链接我读到在 SQLite 中存储日期时间值的最佳数据类型是INTEGER.
INTEGER
将当前日期和时间存储到所述属性中的最佳格式是什么? SimpleDateFormat只接受字符串,但数据类型是INTEGER.
SimpleDateFormat
您可以以毫秒为单位存储时间。从 SimpleDateFormat 中检索Date对象以及 ms 中的等效值long milliseconds = date.getTime ();。店铺milliseconds
Date
long milliseconds = date.getTime ();
milliseconds