From 1c967b5bdc4a73ceecf4bcaf0fcebbdbcf9ff312 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 8 Jan 2026 09:23:26 +0000 Subject: [PATCH] docs(NIP-777): add all relative timestamp units (s, m, h, d, w, mo, y) --- docs/NIP-777-spell.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/NIP-777-spell.md b/docs/NIP-777-spell.md index 5a6919b..65d6b3a 100644 --- a/docs/NIP-777-spell.md +++ b/docs/NIP-777-spell.md @@ -97,14 +97,20 @@ Time bounds support both absolute Unix timestamps and relative expressions: ["since", "7d"] 7 days ago (relative) ["since", "24h"] 24 hours ago ["since", "30m"] 30 minutes ago +["since", "2w"] 2 weeks ago +["since", "1y"] 1 year ago ["until", "now"] Current time at execution ["until", "1704153600"] Absolute Unix timestamp ``` Relative formats: -- `d` — days ago -- `h` — hours ago +- `s` — seconds ago - `m` — minutes ago +- `h` — hours ago +- `d` — days ago +- `w` — weeks ago +- `mo` — months ago (30 days) +- `y` — years ago (365 days) - `now` — current timestamp Clients MUST evaluate relative timestamps at execution time, not at event creation.