{
  "slug": "sqlite-date-time-weekday-n-modifier-form-95e7fda69480",
  "title": "SQLite date/time `weekday -N` modifier form",
  "tools": [
    "sqlite3"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-09T00:00:00.000Z",
  "announced_at": "2026-10-09T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When computing a date with a negative weekday offset, use the `weekday -N` modifier. It moves backward to the most recent previous date with that weekday; `N` must be an integer from -6 through 0.",
    "examples": [
      "SELECT date('<time-value>', 'weekday -<N>');"
    ],
    "gotchas": [
      "Version: 3.54.0",
      "time-value (required): Date/time input; date/time functions accept ISO-8601 text or Julian day numbers, and Unix timestamps when followed by `auto` or `unixepoch`.",
      "weekday -N (required): Weekday modifier: negative N moves backward to the most recent previous weekday. N must be an integer from -6 to +6; if already on that weekday, the date is unchanged.",
      "date() (required): Returns the resulting date as text in `YYYY-MM-DD` format.",
      "Prerequisite: Negative weekday values are supported beginning with SQLite 3.54.0."
    ]
  },
  "why_it_matters": "Compute a date using a negative weekday offset in a SQLite date/time expression.",
  "sources": [
    "https://sqlite.org/changes.html#version_3_54_0",
    "https://sqlite.org/lang_datefunc.html#wdmod",
    "https://sqlite.org/lang_datefunc.html"
  ],
  "rank": 0.93017,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-aa6aa8a7b4aa7d39-9:gate",
    "evidence_hash": "1fb71d915964f35cc634b16363eed077d8e1b30e6badf26cf9b3e5eb52e979c1"
  },
  "review": {
    "draft_hash": "20127b63a1ab95de5985e72cb4b01bb55d068bde879fb9fa3ca0d86b6b19ae3e",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-09T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.93 >= 0.9; 2 needed) and Jev gave 0.61 (>= 0.6 needed)."
  }
}
