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