SQLite Date and Time
Five date and time functions are available, as follows:
- date( timestring, modifier, modifier, ...) 
 
- time( timestring, modifier, modifier, ...) 
 
- datetime( timestring, modifier, modifier, ...) 
 
- julianday( timestring, modifier, modifier, ...) 
 
- strftime( format, timestring, modifier, modifier, ...) 
 
A time string can be in any of the following formats:
- YYYY-MM-DD 
 
- YYYY-MM-DD HH:MM 
 
- YYYY-MM-DD HH:MM:SS 
 
- YYYY-MM-DD HH:MM:SS.SSS 
 
- YYYY-MM-DDTHH:MM 
 
- YYYY-MM-DDTHH:MM:SS 
 
- YYYY-MM-DDTHH:MM:SS.SSS 
 
- HH:MM 
 
- HH:MM:SS 
 
- HH:MM:SS.SSS 
 
- now 
 
- DDDD.DDDD 
 
The time string can be followed by zero or more modifiers that alter the date or alter the interpretation of the date.  The available modifiers are as follows.
- NNN days 
 
- NNN hours 
 
- NNN minutes 
 
- NNN.NNNN seconds 
 
- NNN months 
 
- NNN years 
 
- start of month 
 
- start of year 
 
- start of week  (withdrawn -- will not be implemented) 
 
- start of day 
 
- weekday N 
 
- unixepoch 
 
- localtime 
 
- utc 
 
其中Time String 主要以"-"作為年月日的分隔符號,若是不同的分隔符號用
core function::replace("yyyy/mm/dd", "/", "-")去修改
Some example
SELECT * FROM totp WHERE wk = '1982-05-20'  /* 指定某一天 */
SELECT * FROM totp WHERE wk BETWEEN '1980-05-20' AND '1980-05-26'  /* range */