-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathen-XX.go
588 lines (537 loc) · 23.2 KB
/
en-XX.go
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
package main
import (
"fmt"
"time"
)
func englishOther(year uint32) {
var t time.Time
// https://en.wikipedia.org/wiki/Liturgical_year
// https://fr.wikipedia.org/wiki/Calendrier_liturgique
// the Sunday following the full moon on or after the March equinox (March 21st)
// https://en.wikipedia.org/wiki/Ecclesiastical_full_moon
// https://en.wikipedia.org/wiki/Computus
// https://en.wikipedia.org/wiki/Date_of_Easter
// https://fr.wikipedia.org/wiki/Calcul_de_la_date_de_P%C3%A2ques
// https://en.wikipedia.org/wiki/Easter_cycle
// https://en.wikipedia.org/wiki/Shrovetide
// https://fr.wikipedia.org/wiki/Septuag%C3%A9sime
// https://en.wikipedia.org/wiki/Quinquagesima
// https://fr.wikipedia.org/wiki/Dimanche_Gras
// https://en.wikipedia.org/wiki/Sexagesima
// https://en.wikipedia.org/wiki/Shrove_Tuesday
// https://fr.wikipedia.org/wiki/Mardi_gras
// https://en.wikipedia.org/wiki/Ash_Wednesday
// https://fr.wikipedia.org/wiki/Mercredi_des_Cendres
// https://en.wikipedia.org/wiki/Lent
// https://fr.wikipedia.org/wiki/Car%C3%AAme
// https://en.wikipedia.org/wiki/Quadragesima_Sunday
// https://fr.wikipedia.org/wiki/Premier_dimanche_de_Car%C3%AAme
// https://en.wikipedia.org/wiki/Laetare_Sunday
// https://fr.wikipedia.org/wiki/Quatri%C3%A8me_dimanche_de_Car%C3%AAme
// https://en.wikipedia.org/wiki/Palm_Sunday
// https://fr.wikipedia.org/wiki/Dimanche_des_Rameaux
// https://en.wikipedia.org/wiki/Holy_Wednesday
// https://fr.wikipedia.org/wiki/Mercredi_saint
// https://en.wikipedia.org/wiki/Maundy_Thursday
// https://fr.wikipedia.org/wiki/Jeudi_saint
// https://en.wikipedia.org/wiki/Good_Friday
// https://fr.wikipedia.org/wiki/Vendredi_saint
// https://es.wikipedia.org/wiki/Viernes_Santo
// https://en.wikipedia.org/wiki/Holy_Saturday
// https://fr.wikipedia.org/wiki/Samedi_saint
// https://en.wikipedia.org/wiki/Easter
// https://fr.wikipedia.org/wiki/P%C3%A2ques
// https://es.wikipedia.org/wiki/Pascua
// https://en.wikipedia.org/wiki/Easter_Saturday
// https://en.wikipedia.org/wiki/Feast_of_the_Ascension
// https://fr.wikipedia.org/wiki/Ascension_(f%C3%AAte)
// https://en.wikipedia.org/wiki/Pentecost
// https://fr.wikipedia.org/wiki/Pentec%C3%B4te
// https://en.wikipedia.org/wiki/Trinity_Sunday
// https://fr.wikipedia.org/wiki/F%C3%AAte_de_la_Sainte-Trinit%C3%A9
// https://en.wikipedia.org/wiki/Feast_of_Corpus_Christi
// https://fr.wikipedia.org/wiki/F%C3%AAte-Dieu
// https://en.wikipedia.org/wiki/Carnival
// https://fr.wikipedia.org/wiki/Carnaval
// https://timeanddate.com/holidays/common/carnival-wednesday
// https://timeanddate.com/holidays/common/whit-sunday
// https://timeanddate.com/holidays/common/whit-monday
// Pascua (ES) = Easter
// Mardi Gras
// Mercredi des Cendres
// Lent / Carême
// Dimanche des Rameaux
// Mercredi saint
// Jeudi saint
// Vendredi saint, Viernes Santo (ES)
// Samedi saint
// Dimanche de Pâques
// Lundi de Pâques
// Ascension
// Pentecôte
monthG, dayG := Gregorian(int(year))
easter := find_date(fmt.Sprintf("%d-%02d-%02d", year, monthG, dayG))
t = easter.AddDate(0, 0, -63)
print_date(t, "Septuagesima Sunday") // "70th", 3rd Sunday before Lent (9th before Easter)
t = easter.AddDate(0, 0, -56)
print_date(t, "Sexagesima Sunday") // "60th", 2nd Sunday before Lent (8th before Easter)
t = easter.AddDate(0, 0, -49)
print_date(t, "Quinquagesima/Shrove/Pork Sunday") // "50th", last Sunday before Lent (7th before Easter)
t = easter.AddDate(0, 0, -47)
print_date(t, "Shrove/Pancake Tuesday") // day before Lent
t = easter.AddDate(0, 0, -46)
print_date(t, "Carnival/Ash Wednesday") // Lent begins
t = easter.AddDate(0, 0, -42)
print_date(t, "Invocabit Sunday") // "40th", 1st Sunday after Lent (6th before Easter)
t = easter.AddDate(0, 0, -21)
print_date(t, "Laetare Sunday") // 4th before Easter
t = easter.AddDate(0, 0, -7)
print_date(t, "Palm Sunday")
t = easter.AddDate(0, 0, -4)
print_date(t, "Holy Wednesday")
t = easter.AddDate(0, 0, -3)
print_date(t, "Maundy Thursday")
t = easter.AddDate(0, 0, -2)
print_date(t, "Good Friday")
t = easter.AddDate(0, 0, -1)
print_date(t, "Holy Saturday")
print_date(easter, "Easter Sunday")
t = easter.AddDate(0, 0, 1)
print_date(t, "Easter Monday")
t = easter.AddDate(0, 0, 6)
print_date(t, "Easter Saturday")
t = easter.AddDate(0, 0, 39)
print_date(t, "Ascension Day")
t = easter.AddDate(0, 0, 49)
print_date(t, "Whit/Pentecost Sunday")
t = easter.AddDate(0, 0, 50)
print_date(t, "Whit/Pentecost Monday")
t = easter.AddDate(0, 0, 56)
print_date(t, "Trinity Sunday")
t = easter.AddDate(0, 0, 60)
print_date(t, "Corpus Christi")
// Passover begins on 14 or 15 Nisan and goes until 21 or 22 Nisan
// https://en.wikipedia.org/wiki/Passover
// https://fr.wikipedia.org/wiki/Pessa%27h
// https://en.wikipedia.org/wiki/Pascha
// https://en.wikipedia.org/wiki/Passover_(Christian_holiday)
// https://en.wikipedia.org/wiki/Passover_Seder
// https://fr.wikipedia.org/wiki/S%C3%A9der_de_Pessa%27h
// https://en.wikipedia.org/wiki/Nisan
// https://fr.wikipedia.org/wiki/Nissan_(mois)
// Début de Pâque des Juifs, Fin de Pâque des Juifs
// Passover = Pesach = Pascha = Jewish Easter
// Pessa'h
// XXX FIXME TODO Palm Sunday Orthodox???
monthJ, dayJ := Julian(int(year))
pascha := find_date(fmt.Sprintf("%d-%02d-%02d", year, monthJ, dayJ))
print_date(pascha, "Passover")
//t = pascha.AddDate(0, 0, 8)
//print_date(t, "Orthodox Easter Sunday")
// 2nd Sunday in May
// https://en.wikipedia.org/wiki/Mother's_Day
// https://fr.wikipedia.org/wiki/F%C3%AAte_des_M%C3%A8res
// Fête des mères
t = find_nearby_date(fmt.Sprintf("%d-05-11", year), uint32(time.Sunday))
print_date(t, "Mother's Day")
// 3rd Sunday in June
// https://en.wikipedia.org/wiki/Father's_Day
// https://fr.wikipedia.org/wiki/F%C3%AAte_des_P%C3%A8res
// Fête des pères
t = find_nearby_date(fmt.Sprintf("%d-06-18", year), uint32(time.Sunday))
print_date(t, "Father's Day")
// March 20st, April 20th, May 21st, June 21st
// July 23rd, August 23rd, September 23rd, October 23rd
// November 22nd, December 22nd, January 20th, February 18th
// https://en.wikipedia.org/wiki/Aries_(astrology)
// https://fr.wikipedia.org/wiki/B%C3%A9lier_(astrologie)
// https://en.wikipedia.org/wiki/Taurus_(astrology)
// https://fr.wikipedia.org/wiki/Taureau_(astrologie)
// https://en.wikipedia.org/wiki/Gemini_(astrology)
// https://fr.wikipedia.org/wiki/G%C3%A9meaux_(astrologie)
// https://en.wikipedia.org/wiki/Cancer_(astrology)
// https://fr.wikipedia.org/wiki/Cancer_(astrologie)
// https://en.wikipedia.org/wiki/Leo_(astrology)
// https://fr.wikipedia.org/wiki/Lion_(astrologie)
// https://en.wikipedia.org/wiki/Virgo_(astrology)
// https://fr.wikipedia.org/wiki/Vierge_(astrologie)
// https://en.wikipedia.org/wiki/Libra_(astrology)
// https://fr.wikipedia.org/wiki/Balance_(astrologie)
// https://en.wikipedia.org/wiki/Scorpio_(astrology)
// https://fr.wikipedia.org/wiki/Scorpion_(astrologie)
// https://en.wikipedia.org/wiki/Sagittarius_(astrology)
// https://fr.wikipedia.org/wiki/Sagittaire_(astrologie)
// https://en.wikipedia.org/wiki/Capricorn_(astrology)
// https://fr.wikipedia.org/wiki/Capricorne_(astrologie)
// https://en.wikipedia.org/wiki/Aquarius_(astrology)
// https://fr.wikipedia.org/wiki/Verseau_(astrologie)
// https://en.wikipedia.org/wiki/Pisces_(astrology)
// https://fr.wikipedia.org/wiki/Poissons_(astrologie)
// Ascension du bélier, Descension du bélier
// Ascension du taureau, Descension du taureau
// Ascension des gémeaux, Descension des gémeaux
// Ascension du cancer, Descension du cancer
// Ascension du lion, Descension du lion
// Ascension de la vierge, Descension de la vierge
// Ascension de la balance, Descension de la balance
// Ascension du scorpion, Descension du scorpion
// Ascension du sagittaire, Descension du sagittaire
// Ascension du capricorne, Descension du capricorne
// Ascension du verseau, Descension du verseau
// Ascension des poissons, Descension des poissons
t = find_date(fmt.Sprintf("%d-03-20", year))
print_date(t, "♈︎ Aries Rises")
t = find_date(fmt.Sprintf("%d-04-20", year))
print_date(t, "♉︎ Taurus Rises")
t = find_date(fmt.Sprintf("%d-05-21", year))
print_date(t, "♊︎ Gemini Rises")
t = find_date(fmt.Sprintf("%d-06-21", year))
print_date(t, "♋︎ Cancer Rises")
t = find_date(fmt.Sprintf("%d-07-23", year))
print_date(t, "♌︎ Leo Rises")
t = find_date(fmt.Sprintf("%d-08-23", year))
print_date(t, "♍︎ Virgo Rises")
t = find_date(fmt.Sprintf("%d-09-23", year))
print_date(t, "♎︎ Libra Rises")
t = find_date(fmt.Sprintf("%d-10-23", year))
print_date(t, "♏︎ Scorpio Rises")
t = find_date(fmt.Sprintf("%d-11-22", year))
print_date(t, "♐︎ Sagittarius Rises")
t = find_date(fmt.Sprintf("%d-12-22", year))
print_date(t, "♑︎ Capricorn Rises")
t = find_date(fmt.Sprintf("%d-01-20", year))
print_date(t, "♒︎ Aquarius Rises")
t = find_date(fmt.Sprintf("%d-02-18", year))
print_date(t, "♓︎ Pisces Rises")
// February 1st, May 1st, August 1st, November 1st
// March 21st, June 21st, September 21st, December 21st
// https://en.wikipedia.org/wiki/Wheel_of_the_Year
// https://fr.wikipedia.org/wiki/Roue_de_l%27ann%C3%A9e
// https://en.wikipedia.org/wiki/Imbolc
// https://fr.wikipedia.org/wiki/Imbolc
// https://en.wikipedia.org/wiki/%C4%92ostre
// https://fr.wikipedia.org/wiki/%C3%89ostre
// https://en.wikipedia.org/wiki/Beltane
// https://fr.wikipedia.org/wiki/Beltaine
// https://en.wikipedia.org/wiki/Lughnasadh
// https://fr.wikipedia.org/wiki/Lugnasad
// https://en.wikipedia.org/wiki/Samhain
// https://fr.wikipedia.org/wiki/Samain_(mythologie)
// https://en.wikipedia.org/wiki/Yule
// https://fr.wikipedia.org/wiki/Yule
t = find_date(fmt.Sprintf("%d-02-01", year))
print_date(t, "Imbolc")
t = find_date(fmt.Sprintf("%d-03-21", year))
print_date(t, "Ostara")
t = find_date(fmt.Sprintf("%d-05-01", year))
print_date(t, "Beltane")
t = find_date(fmt.Sprintf("%d-06-21", year))
print_date(t, "Litha")
t = find_date(fmt.Sprintf("%d-08-01", year))
print_date(t, "Lughnasadh")
t = find_date(fmt.Sprintf("%d-09-21", year))
print_date(t, "Mabon")
t = find_date(fmt.Sprintf("%d-11-01", year))
print_date(t, "Samhain")
t = find_date(fmt.Sprintf("%d-12-21", year))
print_date(t, "Yule")
// December 17th to 23rd
// https://en.wikipedia.org/wiki/Saturnalia
// https://fr.wikipedia.org/wiki/Saturnales
t = find_date(fmt.Sprintf("%d-12-17", year))
print_date(t, "Saturnalia Begins")
// December 23rd
// https://en.wikipedia.org/wiki/Festivus
t = find_date(fmt.Sprintf("%d-12-23", year))
print_date(t, "Festivus")
// https://en.wikipedia.org/wiki/Friday_The_13th
// https://fr.wikipedia.org/wiki/Vendredi_treize
// Vendredi treize
t = find_nearby_date(fmt.Sprintf("%d-01-04", year), uint32(time.Friday))
for i := 0; i < 51; i++ {
t = t.AddDate(0, 0, 7)
if 13 == t.Day() {
print_date(t, "Friday the 13th")
}
}
// Caturday
// February 17th, February 22nd, March 1st, August 8th, October 29th
// https://en.wikipedia.org/wiki/International_Cat_Day
// https://fr.wikipedia.org/wiki/Journ%C3%A9e_internationale_du_chat
// https://en.wikipedia.org/wiki/National_Cat_Day
// https://fr.wikipedia.org/wiki/Journ%C3%A9e_nationale_du_chat
t = find_date(fmt.Sprintf("%d-02-17", year))
print_date(t, "National Cat Day (BR, IT)")
t = find_date(fmt.Sprintf("%d-02-22", year))
print_date(t, "National Cat Day (JP)")
t = find_date(fmt.Sprintf("%d-03-01", year))
print_date(t, "National Cat Day (RU)")
t = find_date(fmt.Sprintf("%d-08-08", year))
print_date(t, "International Cat Day")
print_date(t, "National Cat Day (CA)")
t = find_date(fmt.Sprintf("%d-10-29", year))
print_date(t, "National Cat Day (US)")
// February 29, 2012
// https://en.wikipedia.org/wiki/Raspberry_Pi
// https://fr.wikipedia.org/wiki/Raspberry_Pi
if is_leap(year) {
t = find_date(fmt.Sprintf("%d-02-29", year))
} else {
t = find_date(fmt.Sprintf("%d-02-28", year))
}
print_date(t, fmt.Sprintf("%s Birthday of Raspberry Pi", ordinal(int(year-2012), "en")))
// March 14th, June 28th, July 22nd, Nov 9th or 10th (314th day of the year)
// https://en.wikipedia.org/wiki/Pi_Day
// https://fr.wikipedia.org/wiki/Journ%C3%A9e_de_pi
// https://piday.org
// https://tauday.com
// https://piapproximationday.com
// Journée de pi 3.14
// Journée de tau 6.28
// Journée d'approximation pi 22/7
// Journée d'approximation pi 314e jour
t = find_date(fmt.Sprintf("%d-03-14", year))
print_date(t, "Pi Day 3.14")
t = find_date(fmt.Sprintf("%d-06-28", year))
print_date(t, "Tau Day 6.28")
t = find_date(fmt.Sprintf("%d-07-22", year))
print_date(t, "Pi Approximation Day 22/7")
if is_leap(year) {
t = find_date(fmt.Sprintf("%d-11-09", year))
} else {
t = find_date(fmt.Sprintf("%d-11-10", year))
}
print_date(t, "Pi Approximation Day 314th day")
// September 12th or 13th (256th day of the year)
// https://en.wikipedia.org/wiki/Day_of_the_Programmer
// https://fr.wikipedia.org/wiki/Journ%C3%A9e_des_programmeurs
// Jour du programmeur 256e jour
if is_leap(year) {
t = find_date(fmt.Sprintf("%d-09-12", year))
} else {
t = find_date(fmt.Sprintf("%d-09-13", year))
}
print_date(t, "Day of the Programmer 256th day")
// 3rd Tuesday in September
// https://npw.payroll.ca
// https://www.dayforce.com/ca/blog/how-to-celebrate-national-payroll-week
t = find_nearby_date(fmt.Sprintf("%d-09-18", year), uint32(time.Tuesday))
print_date(t, "National Day of Recognition for Payroll Professionals")
// 3rd Saturday in September
// https://en.wikipedia.org/wiki/Software_Freedom_Day
// https://fr.wikipedia.org/wiki/Journ%C3%A9e_du_logiciel_libre
// Journée de la liberté des logiciels
t = find_nearby_date(fmt.Sprintf("%d-09-18", year), uint32(time.Saturday))
print_date(t, "Software Freedom Day")
// January 1st, 1970
// https://en.wikipedia.org/wiki/Unix
// https://fr.wikipedia.org/wiki/Unix
// https://en.wikipedia.org/wiki/History_of_Unix
t = find_date(fmt.Sprintf("%d-01-01", year))
print_date(t, fmt.Sprintf("%s Birthday of Unix", ordinal(int(year-1970), "en")))
// June 1st, 1974
// https://en.wikipedia.org/wiki/Diff
// https://fr.wikipedia.org/wiki/Diff
t = find_date(fmt.Sprintf("%d-06-01", year))
print_date(t, fmt.Sprintf("%s Birthday of Diff", ordinal(int(year-1974), "en")))
// February 20th, 1991
// https://en.wikipedia.org/wiki/Python_(programming_language)
// https://fr.wikipedia.org/wiki/Python_(langage)
t = find_date(fmt.Sprintf("%d-02-20", year))
print_date(t, fmt.Sprintf("%s Birthday of Python", ordinal(int(year-1991), "en")))
// September 17th, 1991
// https://en.wikipedia.org/wiki/Linux
// https://fr.wikipedia.org/wiki/Linux
t = find_date(fmt.Sprintf("%d-09-17", year))
print_date(t, fmt.Sprintf("%s Birthday of Linux", ordinal(int(year-1991), "en")))
// April 19th, 1993
// https://en.wikipedia.org/wiki/NetBSD
// https://fr.wikipedia.org/wiki/NetBSD
t = find_date(fmt.Sprintf("%d-04-19", year))
print_date(t, fmt.Sprintf("%s Birthday of NetBSD", ordinal(int(year-1993), "en")))
// July 17th, 1993
// https://en.wikipedia.org/wiki/Slackware
// https://fr.wikipedia.org/wiki/Slackware
t = find_date(fmt.Sprintf("%d-07-17", year))
print_date(t, fmt.Sprintf("%s Birthday of Slackware", ordinal(int(year-1993), "en")))
// September 15th, 1993
// https://en.wikipedia.org/wiki/Debian
// https://fr.wikipedia.org/wiki/Debian
t = find_date(fmt.Sprintf("%d-09-15", year))
print_date(t, fmt.Sprintf("%s Birthday of Debian", ordinal(int(year-1993), "en")))
// November 1st, 1993
// https://en.wikipedia.org/wiki/FreeBSD
// https://fr.wikipedia.org/wiki/FreeBSD
t = find_date(fmt.Sprintf("%d-11-01", year))
print_date(t, fmt.Sprintf("%s Birthday of FreeBSD", ordinal(int(year-1993), "en")))
// October 18th, 1995
// https://en.wikipedia.org/wiki/OpenBSD
// https://fr.wikipedia.org/wiki/OpenBSD
t = find_date(fmt.Sprintf("%d-10-18", year))
print_date(t, fmt.Sprintf("%s Birthday of OpenBSD", ordinal(int(year-1995), "en")))
// June 2nd, 1998
// https://www.gimp.org/about/history.html
// https://en.wikipedia.org/wiki/GIMP
// https://fr.wikipedia.org/wiki/GIMP
t = find_date(fmt.Sprintf("%d-06-02", year))
print_date(t, fmt.Sprintf("%s Birthday of GIMP", ordinal(int(year-1998), "en")))
// March 11th, 2002
// https://en.wikipedia.org/wiki/Arch_Linux
// https://fr.wikipedia.org/wiki/Arch_Linux
t = find_date(fmt.Sprintf("%d-03-11", year))
print_date(t, fmt.Sprintf("%s Birthday of Arch Linux", ordinal(int(year-2002), "en")))
// November 6th, 2003
// https://en.wikipedia.org/wiki/Inkscape
// https://fr.wikipedia.org/wiki/Inkscape
t = find_date(fmt.Sprintf("%d-11-06", year))
print_date(t, fmt.Sprintf("%s Birthday of Inkscape", ordinal(int(year-2003), "en")))
// January 1st, 2004
// https://en.wikipedia.org/wiki/OpenWrt
// https://fr.wikipedia.org/wiki/OpenWrt
t = find_date(fmt.Sprintf("%d-01-01", year))
print_date(t, fmt.Sprintf("%s Birthday of OpenWRT", ordinal(int(year-2004), "en")))
// October 20th, 2004
// https://en.wikipedia.org/wiki/Ubuntu
// https://fr.wikipedia.org/wiki/Ubuntu_(syst%C3%A8me_d%27exploitation)
t = find_date(fmt.Sprintf("%d-10-20", year))
print_date(t, fmt.Sprintf("%s Birthday of Ubuntu", ordinal(int(year-2004), "en")))
// April 7, 2005
// https://en.wikipedia.org/wiki/Git
// https://fr.wikipedia.org/wiki/Git
t = find_date(fmt.Sprintf("%d-04-07", year))
print_date(t, fmt.Sprintf("%s Birthday of Git", ordinal(int(year-2005), "en")))
// June 7, 2005
// https://krita.org/en/posts/2024/krita-25-years
// https://en.wikipedia.org/wiki/Krita
// https://fr.wikipedia.org/wiki/Krita
t = find_date(fmt.Sprintf("%d-06-07", year))
print_date(t, fmt.Sprintf("%s Birthday of Krita", ordinal(int(year-2005), "en")))
// November 10th, 2009
// https://en.wikipedia.org/wiki/Go_(programming_language)
// https://fr.wikipedia.org/wiki/Go_(langage)
t = find_date(fmt.Sprintf("%d-11-10", year))
print_date(t, fmt.Sprintf("%s Birthday of Golang", ordinal(int(year-2009), "en")))
// February 19th, 2010
// https://en.wikipedia.org/wiki/OpenSCAD
// https://fr.wikipedia.org/wiki/OpenSCAD
t = find_date(fmt.Sprintf("%d-02-19", year))
print_date(t, fmt.Sprintf("%s Birthday of OpenSCAD", ordinal(int(year-2010), "en")))
// January 25th, 2011
// https://en.wikipedia.org/wiki/LibreOffice
// https://fr.wikipedia.org/wiki/LibreOffice
t = find_date(fmt.Sprintf("%d-01-25", year))
print_date(t, fmt.Sprintf("%s Birthday of LibreOffice", ordinal(int(year-2011), "en")))
// December 15th, 2011
// https://en.wikipedia.org/wiki/LibreCAD
// https://fr.wikipedia.org/wiki/LibreCAD
t = find_date(fmt.Sprintf("%d-12-15", year))
print_date(t, fmt.Sprintf("%s Birthday of LibreCAD", ordinal(int(year-2011), "en")))
// September 19th
// https://en.wikipedia.org/wiki/International_Talk_Like_a_Pirate_Day
// https://fr.wikipedia.org/wiki/International_Talk_Like_a_Pirate_Day
t = find_date(fmt.Sprintf("%d-09-19", year))
print_date(t, "International Talk Like a Pirate Day")
// August 13th
// https://en.wikipedia.org/wiki/International_Lefthanders_Day
// https://fr.wikipedia.org/wiki/Journ%C3%A9e_internationale_des_gauchers
// Journée internationale des gauchers
t = find_date(fmt.Sprintf("%d-08-13", year))
print_date(t, "Left-Handers' Day")
// June 28th, October 22nd
// https://en.wikipedia.org/wiki/Caps_lock#International_Caps_Lock_Day
// https://fr.wikipedia.org/wiki/Touche_de_verrouillage_des_majuscules
// JOURNÉE INTERNATIONALE DU VERROUILLAGE DES MAJUSCULES
t = find_date(fmt.Sprintf("%d-06-28", year))
print_date(t, "INTERNATIONAL CAPS LOCK DAY")
t = find_date(fmt.Sprintf("%d-10-22", year))
print_date(t, "INTERNATIONAL CAPS LOCK DAY")
// February 13th
// https://en.wikipedia.org/wiki/World_Radio_Day
// https://fr.wikipedia.org/wiki/Journ%C3%A9e_mondiale_de_la_radio
// Journée mondiale de la radio
t = find_date(fmt.Sprintf("%d-02-13", year))
print_date(t, "World Radio Day")
// April 18th
// https://iaru.org/on-the-air/world-amateur-radio-day
// https://rac.ca/operating/world-amateur-radio-day-april-18
// https://arrl.org/world-amateur-radio-day
// Journée de la radio amateur
t = find_date(fmt.Sprintf("%d-04-18", year))
print_date(t, "World Amateur Radio Day")
// November 27, 1923
// https://en.wikipedia.org/wiki/History_of_amateur_radio
t = find_date(fmt.Sprintf("%d-11-27", year))
print_date(t, fmt.Sprintf("%s Anniversary of first transatlantic two-way ham contact", ordinal(int(year-1923), "en")))
// February 12th (February 12th, 1809)
// https://en.wikipedia.org/wiki/Darwin_Day
// https://fr.wikipedia.org/wiki/Journ%C3%A9e_Darwin
// Journée de Darwin
t = find_date(fmt.Sprintf("%d-02-12", year))
print_date(t, "Darwin Day")
// July 10th
// https://en.wikipedia.org/wiki/Nikola_Tesla
// https://fr.wikipedia.org/wiki/Nikola_Tesla
// https://nikolatesladay.com/
t = find_date(fmt.Sprintf("%d-07-10", year))
print_date(t, "Nikola Tesla Day")
// 2nd Tuesday of October
// https://en.wikipedia.org/wiki/Ada_Lovelace_Day
// https://fr.wikipedia.org/wiki/Ada_Lovelace_Day
// https://findingada.com/about/when-is-ald
// Journée de Ada Lovelace
t = find_nearby_date(fmt.Sprintf("%d-10-11", year), uint32(time.Tuesday))
print_date(t, "Ada Lovelace Day")
// October 4th, 1957
// https://en.wikipedia.org/wiki/Sputnik_1
// https://fr.wikipedia.org/wiki/Spoutnik_1
// Anniversaire du lancement de Spoutnik 1
t = find_date(fmt.Sprintf("%d-10-04", year))
print_date(t, fmt.Sprintf("%s Anniversary of Sputnik 1 launch", ordinal(int(year-1957), "en")))
// July 20th, 1969
// December 11th, 1972
// https://en.wikipedia.org/wiki/Apollo_11
// https://fr.wikipedia.org/wiki/Apollo_11
// https://en.wikipedia.org/wiki/Apollo_17
// https://fr.wikipedia.org/wiki/Apollo_17
t = find_date(fmt.Sprintf("%d-07-20", year))
print_date(t, fmt.Sprintf("%s Anniversary of Apollo 11 lunar landing", ordinal(int(year-1969), "en")))
t = find_date(fmt.Sprintf("%d-12-11", year))
print_date(t, fmt.Sprintf("%s Anniversary of Apollo 17 lunar landing", ordinal(int(year-1972), "en")))
// April 25th, 1990
// https://en.wikipedia.org/wiki/Hubble_Space_Telescope
// https://fr.wikipedia.org/wiki/Hubble_(t%C3%A9lescope_spatial)
// Anniversaire du lancement de Hubble
t = find_date(fmt.Sprintf("%d-04-25", year))
print_date(t, fmt.Sprintf("%s Anniversary of Hubble launch", ordinal(int(year-1990), "en")))
// August 7th, 2027
// October 26th, 2028
// https://en.wikipedia.org/wiki/(137108)_1999_AN10
// https://fr.wikipedia.org/wiki/(137108)_1999_AN10
// https://en.wikipedia.org/wiki/(35396)_1997_XF11
// https://fr.wikipedia.org/wiki/(35396)_1997_XF11
if 2027 == year {
t = find_date("2027-08-07")
print_date(t, "06:48 1999 AN10 Asteroid Pass")
}
if 2028 == year {
t = find_date("2028-10-26")
print_date(t, "06:44 1997 XF11 Asteroid Pass")
}
// February 7th, 2036
// January 19th, 2038
// https://en.wikipedia.org/wiki/Year_2038_problem
// https://fr.wikipedia.org/wiki/Bug_de_l%27an_2038
// https://en.wikipedia.org/wiki/Network_Time_Protocol
// https://fr.wikipedia.org/wiki/Network_Time_Protocol
// NTP 00:00:00 UTC January 1st, 1900 to 06:28:16 UTC February 7th, 2036
// POSIX 00:00:00 UTC January 1st, 1970 to 03:14:07 UTC January 19th, 2038
// POSIX unsigned 32-bit overflow 06:28:15 UTC February 7th, 2106
if 2036 == year {
t = find_date("2036-02-07")
print_date(t, "06:28:16 UTC NTP 32-bit Overflow")
}
if 2038 == year {
t = find_date("2038-01-19")
print_date(t, "03:14:07 UTC POSIX 32-bit Overflow")
}
}