SQlite3 的简单用法。 调用本地时间
Microsoft Windows [版本 10.0.14393] (c) 2016 Microsoft Corporation。保留所有权利。 C:\Users\Administrator>sqlite3 SQLite version 3.25.2 2018-09-25 19:08:10 Enter ".help" for usage hints. Connected to a transient in-memory database. Use ".open FILENAME" to reopen on a persistent database. sqlite> select datetime('now') ...> ; 2018-10-16 16:13:42 sqlite> select datetime(); 2018-10-16 16:15:05 sqlite> select datetime(); 2018-10-16 16:15:08 sqlite> select datetime(); 2018-10-16 16:15:12 sqlite> select datetime('now','localtime'); 2018-10-17 00:16:18 sqlite> select datetime('CURRENT_TIMESTAMP','localtime'); sqlite> select datetime(); 2018-10-16 16:17:15 sqlite> select datetime('now','localtime'); 2018-10-17 00:17:20 sqlite> select datetime(CURRENT_TIMESTAMP,'localtime'); 2018-10-17 00:17:31 sqlite>