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 日付を C++ Time_T 変数に変換するにはどうすればよいですか?
YYYY-MM-DD HH:MM:SS
time_tUnix タイムスタンプ (1970-01-01 からの秒数) であるため、strftimeで変換する必要があります。
time_t
SELECT strftime('%s', '2013-07-05 12:34:56');
結果は文字列ですが、整数値として読み取ることができます。