upleb.uk

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

summaryrefslogtreecommitdiff
path: root/52.md
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 /52.md
parent5d232e65254100d543ebd1936d966085e9820dae (diff)
Add timehashes to nip 52 (#1752)
Co-authored-by: Jon Staab <shtaab@gmail.com>
Diffstat (limited to '52.md')
-rw-r--r--52.md6
1 files changed, 2 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