upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhodlbod <jstaab@protonmail.com>2026-02-13 08:45:38 -0800
committerGitHub <noreply@github.com>2026-02-13 08:45:38 -0800
commit5a4734f8b77519b07568bf693e6dbb0d47aef0b6 (patch)
tree64e2b90acaf1521e95a488710b247ba65550d881
parent5d232e65254100d543ebd1936d966085e9820dae (diff)
Add timehashes to nip 52 (#1752)
Co-authored-by: Jon Staab <shtaab@gmail.com>
-rw-r--r--52.md6
-rw-r--r--README.md1
2 files changed, 3 insertions, 4 deletions
diff --git a/52.md b/52.md
index 0b69007..060b38f 100644
--- a/52.md
+++ b/52.md
@@ -95,6 +95,7 @@ Aside from the common tags, this also takes the following tags:
95* `end` (optional) exclusive end Unix timestamp in seconds. If omitted, the calendar event ends instantaneously. 95* `end` (optional) exclusive end Unix timestamp in seconds. If omitted, the calendar event ends instantaneously.
96* `start_tzid` (optional) time zone of the start timestamp, as defined by the IANA Time Zone Database. e.g., `America/Costa_Rica` 96* `start_tzid` (optional) time zone of the start timestamp, as defined by the IANA Time Zone Database. e.g., `America/Costa_Rica`
97* `end_tzid` (optional) time zone of the end timestamp, as defined by the IANA Time Zone Database. e.g., `America/Costa_Rica`. If omitted and `start_tzid` is provided, the time zone of the end timestamp is the same as the start timestamp. 97* `end_tzid` (optional) time zone of the end timestamp, as defined by the IANA Time Zone Database. e.g., `America/Costa_Rica`. If omitted and `start_tzid` is provided, the time zone of the end timestamp is the same as the start timestamp.
98* `D` (required) the day-granularity unix timestamp on which the event takes place, calculated as `floor(unix_seconds() / seconds_in_one_day)`. Multiple tags SHOULD be included to cover the event's timeframe.
98 99
99```yaml 100```yaml
100{ 101{
@@ -113,6 +114,7 @@ Aside from the common tags, this also takes the following tags:
113 // timestamps 114 // timestamps
114 ["start", "<unix timestamp in seconds>"], 115 ["start", "<unix timestamp in seconds>"],
115 ["end", "<unix timestamp in seconds>"], 116 ["end", "<unix timestamp in seconds>"],
117 ["D", "82549"],
116 118
117 ["start_tzid", "<IANA Time Zone Database identifier>"], 119 ["start_tzid", "<IANA Time Zone Database identifier>"],
118 ["end_tzid", "<IANA Time Zone Database identifier>"], 120 ["end_tzid", "<IANA Time Zone Database identifier>"],
@@ -203,10 +205,6 @@ The list of tags is as follows:
203} 205}
204``` 206```
205 207
206## Unsolved Limitations
207
208* No private events
209
210## Intentionally Unsupported Scenarios 208## Intentionally Unsupported Scenarios
211 209
212### Recurring Calendar Events 210### Recurring Calendar Events
diff --git a/README.md b/README.md
index 2e11906..c094d47 100644
--- a/README.md
+++ b/README.md
@@ -348,6 +348,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
348| `A` | root address | relay URL | [22](22.md) | 348| `A` | root address | relay URL | [22](22.md) |
349| `c` | commit id | | [34](34.md) | 349| `c` | commit id | | [34](34.md) |
350| `d` | identifier | -- | [01](01.md) | 350| `d` | identifier | -- | [01](01.md) |
351| `D` | day | -- | [52](52.md) |
351| `e` | event id (hex) | relay URL, marker, pubkey (hex) | [01](01.md), [10](10.md) | 352| `e` | event id (hex) | relay URL, marker, pubkey (hex) | [01](01.md), [10](10.md) |
352| `E` | root event id | relay URL | [22](22.md) | 353| `E` | root event id | relay URL | [22](22.md) |
353| `f` | currency code | -- | [69](69.md) | 354| `f` | currency code | -- | [69](69.md) |