0
strftime('%s', 'now', 'start of month') AND strftime('%s', 'now', 'start of month', '+1 month', '-1 day')
這給了我當前月份的第一天和最後一天之間的範圍。我怎樣才能獲得本週的範圍?strftime本週的第一天
這
strftime('%s', 'now', 'weekday 0')
給似乎給當前周的最後一天(星期日),但我無法找到如何獲得當前一週的第一天。
PS:我的strftime使用WHERE子句訪問數據庫SQLite中
我也幾乎是相同的 - 的strftime( '%s' 的, '現在', '工作日0', '-6天'):-) – Littlebitter 2013-04-08 15:33:58