Template:Similar year 1970-2037/Help

From Wikipedia, the free encyclopedia

Wikimedia's function #time is influenced by year 2038 problem, and can be used only with years in range 1970-2037. In order to use all other Gregorian year, one needs to find a similar year in range 1970-2037, that behaves like that Gregorian year: Both years have the same length, and they both start in the same day of week.

Step 1 - Divide the Gregorian year by 400, and get a remainder. Example: the remainder of 1969 divided by 400 is 369.

Step 2 - Find a similar year in range 1970-2037 in the table - by the number calculated on step 1. Example: with 369 calculated on step 1 get the similay year 1975, which is in the desired range 1970-2037.

[edit] The conversion table

Remainder of division by 400 Similar year in range 19702037 Remainder of division by 400 Similar year in range 19702037 Remainder of division by 400 Similar year in range 19702037 Remainder of division by 400 Similar year in range 19702037
0 1972 100 1971 200 1975 300 1973
1 1973 101 1977 201 1981 301 1974
2 1974 102 1978 202 1971 302 1975
3 1975 103 1973 203 1977 303 1981
4 1976 104 1980 204 1984 304 1988
5 1977 105 1981 205 1974 305 1978
6 1978 106 1971 206 1975 306 1973
7 1973 107 1977 207 1981 307 1974
8 1980 108 1984 208 1988 308 1992
9 1981 109 1974 209 1978 309 1971
10 1971 110 1975 210 1973 310 1977
11 1977 111 1981 211 1974 311 1978
12 1984 112 1988 212 1992 312 1996
13 1974 113 1978 213 1971 313 1975
14 1975 114 1973 214 1977 314 1981
15 1981 115 1974 215 1978 315 1971
16 1988 116 1992 216 1996 316 1972
17 1978 117 1971 217 1975 317 1973
18 1973 118 1977 218 1981 318 1974
19 1974 119 1978 219 1971 319 1975
20 1992 120 1996 220 1972 320 1976
21 1971 121 1975 221 1973 321 1977
22 1977 122 1981 222 1974 322 1978
23 1978 123 1971 223 1975 323 1973
24 1996 124 1972 224 1976 324 1980
25 1975 125 1973 225 1977 325 1981
26 1981 126 1974 226 1978 326 1971
27 1971 127 1975 227 1973 327 1977
28 1972 128 1976 228 1980 328 1984
29 1973 129 1977 229 1981 329 1974
30 1974 130 1978 230 1971 330 1975
31 1975 131 1973 231 1977 331 1981
32 1976 132 1980 232 1984 332 1988
33 1977 133 1981 233 1974 333 1978
34 1978 134 1971 234 1975 334 1973
35 1973 135 1977 235 1981 335 1974
36 1980 136 1984 236 1988 336 1992
37 1981 137 1974 237 1978 337 1971
38 1971 138 1975 238 1973 338 1977
39 1977 139 1981 239 1974 339 1978
40 1984 140 1988 240 1992 340 1996
41 1974 141 1978 241 1971 341 1975
42 1975 142 1973 242 1977 342 1981
43 1981 143 1974 243 1978 343 1971
44 1988 144 1992 244 1996 344 1972
45 1978 145 1971 245 1975 345 1973
46 1973 146 1977 246 1981 346 1974
47 1974 147 1978 247 1971 347 1975
48 1992 148 1996 248 1972 348 1976
49 1971 149 1975 249 1973 349 1977
50 1977 150 1981 250 1974 350 1978
51 1978 151 1971 251 1975 351 1973
52 1996 152 1972 252 1976 352 1980
53 1975 153 1973 253 1977 353 1981
54 1981 154 1974 254 1978 354 1971
55 1971 155 1975 255 1973 355 1977
56 1972 156 1976 256 1980 356 1984
57 1973 157 1977 257 1981 357 1974
58 1974 158 1978 258 1971 358 1975
59 1975 159 1973 259 1977 359 1981
60 1976 160 1980 260 1984 360 1988
61 1977 161 1981 261 1974 361 1978
62 1978 162 1971 262 1975 362 1973
63 1973 163 1977 263 1981 363 1974
64 1980 164 1984 264 1988 364 1992
65 1981 165 1974 265 1978 365 1971
66 1971 166 1975 266 1973 366 1977
67 1977 167 1981 267 1974 367 1978
68 1984 168 1988 268 1992 368 1996
69 1974 169 1978 269 1971 369 1975
70 1975 170 1973 270 1977 370 1981
71 1981 171 1974 271 1978 371 1971
72 1988 172 1992 272 1996 372 1972
73 1978 173 1971 273 1975 373 1973
74 1973 174 1977 274 1981 374 1974
75 1974 175 1978 275 1971 375 1975
76 1992 176 1996 276 1972 376 1976
77 1971 177 1975 277 1973 377 1977
78 1977 178 1981 278 1974 378 1978
79 1978 179 1971 279 1975 379 1973
80 1996 180 1972 280 1976 380 1980
81 1975 181 1973 281 1977 381 1981
82 1981 182 1974 282 1978 382 1971
83 1971 183 1975 283 1973 383 1977
84 1972 184 1976 284 1980 384 1984
85 1973 185 1977 285 1981 385 1974
86 1974 186 1978 286 1971 386 1975
87 1975 187 1973 287 1977 387 1981
88 1976 188 1980 288 1984 388 1988
89 1977 189 1981 289 1974 389 1978
90 1978 190 1971 290 1975 390 1973
91 1973 191 1977 291 1981 391 1974
92 1980 192 1984 292 1988 392 1992
93 1981 193 1974 293 1978 393 1971
94 1971 194 1975 294 1973 394 1977
95 1977 195 1981 295 1974 395 1978
96 1984 196 1988 296 1992 396 1996
97 1974 197 1978 297 1971 397 1975
98 1975 198 1973 298 1977 398 1981
99 1981 199 1974 299 1978 399 1971