【发布时间】:2013-04-04 11:12:45
【问题描述】:
strftime('%s', 'now', 'start of month') AND strftime('%s', 'now', 'start of month', '+1 month', '-1 day')
这给了我当前月的第一天和最后一天之间的范围。如何获取当前周的范围?
这个
strftime('%s', 'now', 'weekday 0')
gives 似乎给出了本周(星期日)的最后一天,但我找不到如何获得本周的第一天。
PS:我在 WHERE 子句中使用 strftime 访问 Sqlite 中的数据库
【问题讨论】:
标签: c sqlite date datetime strftime