{
  "slug": "jj-templates-add-timestamp-since-a8fe389549c1",
  "title": "jj templates add Timestamp::since",
  "tools": [
    "jj"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-04T18:28:43.000Z",
  "announced_at": "2026-03-04T18:28:43.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a template needs a human-friendly duration between two timestamps, call `.since(start)` on the ending `Timestamp`, then call `.duration()` on the returned `TimestampRange`.",
    "examples": [
      "jj log -T 'self.committer().timestamp().since(self.author().timestamp()).duration()'"
    ],
    "gotchas": [
      "Version: v0.39.0",
      ".since(start: Timestamp) (required): Returns the `TimestampRange` between `start` and the receiver timestamp.",
      ".duration() (required): Returns a human-friendly duration string for a `TimestampRange`.",
      "Prerequisite: Use jj v0.39.0 or later; this template method is documented in the v0.39.0 templates reference."
    ]
  },
  "why_it_matters": "Display a human-friendly duration between timestamps in a jj template.",
  "sources": [
    "https://github.com/jj-vcs/jj/releases/tag/v0.39.0",
    "https://github.com/jj-vcs/jj/blob/v0.39.0/docs/templates.md"
  ],
  "rank": 0.94017,
  "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": "wave1b-tools-20261017",
    "verdict_id": "wave1b-tools-20261017:wave1b-tools-20261017-7bbe2f4242294e1b-18:gate",
    "evidence_hash": "c53a418ad28d07436e7dcc93a9a84d24352b31af3ecd8b942def60733aee66fc"
  },
  "review": {
    "draft_hash": "c917b4fa1a3ae55050fbb7c9afacfe1d55cca5161ae0ffb804e02c5272b9e5dd",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-tools-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.94 >= 0.9; 2 needed) and Jev gave 0.69 (>= 0.6 needed)."
  }
}
