mirror of
https://github.com/nostr-protocol/nips.git
synced 2026-02-16 04:44:34 +00:00
Add timehashes to nip 52 (#1752)
Co-authored-by: Jon Staab <shtaab@gmail.com>
This commit is contained in:
6
52.md
6
52.md
@@ -95,6 +95,7 @@ Aside from the common tags, this also takes the following tags:
|
||||
* `end` (optional) exclusive end Unix timestamp in seconds. If omitted, the calendar event ends instantaneously.
|
||||
* `start_tzid` (optional) time zone of the start timestamp, as defined by the IANA Time Zone Database. e.g., `America/Costa_Rica`
|
||||
* `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.
|
||||
* `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.
|
||||
|
||||
```yaml
|
||||
{
|
||||
@@ -113,6 +114,7 @@ Aside from the common tags, this also takes the following tags:
|
||||
// timestamps
|
||||
["start", "<unix timestamp in seconds>"],
|
||||
["end", "<unix timestamp in seconds>"],
|
||||
["D", "82549"],
|
||||
|
||||
["start_tzid", "<IANA Time Zone Database identifier>"],
|
||||
["end_tzid", "<IANA Time Zone Database identifier>"],
|
||||
@@ -203,10 +205,6 @@ The list of tags is as follows:
|
||||
}
|
||||
```
|
||||
|
||||
## Unsolved Limitations
|
||||
|
||||
* No private events
|
||||
|
||||
## Intentionally Unsupported Scenarios
|
||||
|
||||
### Recurring Calendar Events
|
||||
|
||||
Reference in New Issue
Block a user