Add makeCalendarFeed

This commit is contained in:
Jon Staab
2025-02-05 16:26:22 -08:00
parent a0c6e46184
commit db69c56f57
7 changed files with 193 additions and 52 deletions
+1 -1
View File
@@ -26,6 +26,6 @@ export const nsecDecode = (nsec: string) => {
return bytesToHex(data)
}
export const day = (seconds: number) => Math.floor(seconds / DAY).toString()
export const day = (seconds: number) => Math.floor(seconds / DAY)
export const daysBetween = (start: number, end: number) => [...range(start, end, DAY)].map(day)