social-kit / test / vectors / isoweek.json
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
  "_doc": "isoWeek/lbRoomId/lbTopic (receipts.ts): ISO-8601 week bucketing at UTC year boundaries incl. week-52/53 years, and the weekly-drop room/topic derivations.",
  "deterministic": {
    "weeks": [
      {
        "date": "1970-01-01T00:00:00.000Z",
        "ts": 0,
        "week": "1970-W01"
      },
      {
        "date": "2000-01-01T00:00:00.000Z",
        "ts": 946684800000,
        "week": "1999-W52"
      },
      {
        "date": "2015-12-28T00:00:00.000Z",
        "ts": 1451260800000,
        "week": "2015-W53"
      },
      {
        "date": "2016-01-01T00:00:00.000Z",
        "ts": 1451606400000,
        "week": "2015-W53"
      },
      {
        "date": "2017-01-01T00:00:00.000Z",
        "ts": 1483228800000,
        "week": "2016-W52"
      },
      {
        "date": "2017-01-02T00:00:00.000Z",
        "ts": 1483315200000,
        "week": "2017-W01"
      },
      {
        "date": "2019-12-30T00:00:00.000Z",
        "ts": 1577664000000,
        "week": "2020-W01"
      },
      {
        "date": "2020-12-31T23:59:59.999Z",
        "ts": 1609459199999,
        "week": "2020-W53"
      },
      {
        "date": "2021-01-01T00:00:00.000Z",
        "ts": 1609459200000,
        "week": "2020-W53"
      },
      {
        "date": "2021-01-04T00:00:00.000Z",
        "ts": 1609718400000,
        "week": "2021-W01"
      },
      {
        "date": "2024-12-30T00:00:00.000Z",
        "ts": 1735516800000,
        "week": "2025-W01"
      },
      {
        "date": "2025-01-05T23:59:59.999Z",
        "ts": 1736121599999,
        "week": "2025-W01"
      },
      {
        "date": "2026-01-01T00:00:00.000Z",
        "ts": 1767225600000,
        "week": "2026-W01"
      },
      {
        "date": "2026-08-27T12:00:00.000Z",
        "ts": 1787832000000,
        "week": "2026-W35"
      },
      {
        "date": "2026-12-28T00:00:00.000Z",
        "ts": 1798416000000,
        "week": "2026-W53"
      },
      {
        "date": "2026-12-31T23:59:59.999Z",
        "ts": 1798761599999,
        "week": "2026-W53"
      },
      {
        "date": "2027-01-01T00:00:00.000Z",
        "ts": 1798761600000,
        "week": "2026-W53"
      },
      {
        "date": "2028-01-01T00:00:00.000Z",
        "ts": 1830297600000,
        "week": "2027-W52"
      }
    ],
    "lb_room_ids": [
      {
        "g": "game1-test-salt",
        "week": "2026-W35",
        "room_id": "8xrsqWWlAOk8cSYoqvQ9H1n7qM_c1VzsmM4WtzQqBqo"
      },
      {
        "g": "game1-test-salt",
        "week": "2026-W53",
        "room_id": "iFHNLgk5cfwCLiM95naNGyPFgSb5ZQh2p4aroo8qsqU"
      },
      {
        "g": "game2-test-salt",
        "week": "2020-W53",
        "room_id": "01sky7jp4QEOv-i5Dnu__wjZjSrsrre3adAs7eanSLM"
      }
    ],
    "lb_topics": [
      {
        "g": "game1-test-salt",
        "topic": "lb/1/pp5Ay3UjnSC49GvQ77HJeu"
      },
      {
        "g": "game2-test-salt",
        "topic": "lb/1/tc46e8DnhwYQaNMzlFAqwo"
      }
    ],
    "notes": [
      "isoWeek works in UTC; Thursday of the containing week decides the week-year",
      "lbRoomId = sha256B64url('lb|v1|<g>|<week>') (full 43 chars)",
      "lbTopic = 'lb/1/' + sha256B64url('lb-topic|v1|<g>').slice(0,22)",
      "fetchWeekly verifies with maxAgeMs = 8*86400000 by default (caller opts may override)"
    ]
  }
}

static mirror of HEAD · about · clone: git clone https://git.ardegazu.ro/social-kit.git