r/logseq•
_Mark_

journal query for "last calendar week"?

Most of the examples use `:7d` and the like, but I'm looking for a "review last week" query that works any day of this week and gets the same pages. Apparently logseq has a mix of locally interpreted syntax and feeding things to npm chrono-node but I haven't found a thorough grammar for either, or a way to test time expressions...

Posted Nov 10, 2022, 3:42 PM UTC

21
_Mark_OP•

Ok, looks like chrono.parseDate is only used in date/nld-parse which only gets used in template/resolve-dynamic-template! but that's used in a few query-related places, so that part seems plausible. ( main/frontend/db/query_dsl.cljs has the explicit y/m/d/h/n parsing, plus now/today/yesterday/tomorrow, plus some (between created_at examples I haven't seen before... ah perhaps that's because they don't work yet https://github.com/logseq/logseq/issues/3194 .) Still digging, nothing productive though.

1