Friday the 13th
前回のFriday the 13thは2019-12-13だったっぽいな。すぐわかるの便利。
Friday the 13thじゃん
次にこのリンクが出現する日が楽しみ、それまで日記を書き続けていられたらいいな
「えっ、ちょうど3ヶ月?前回も13日だったのか〜」となって頭脳がマヌケだった。
b = Date.new(1983, 6, 29)
n = 0
c = 0
loop {
d = b + n
break if d > Date.today
if d.friday? && d.day == 13
c += 1
puts "%2d : %s" % [c, d.to_s]
end
n += 1
}
1 : 1984-01-13
2 : 1984-04-13
3 : 1984-07-13
4 : 1985-09-13
5 : 1985-12-13
6 : 1986-06-13
7 : 1987-02-13
8 : 1987-03-13
9 : 1987-11-13
10 : 1988-05-13
11 : 1989-01-13
12 : 1989-10-13
13 : 1990-04-13
14 : 1990-07-13
15 : 1991-09-13
16 : 1991-12-13
17 : 1992-03-13
18 : 1992-11-13
19 : 1993-08-13
20 : 1994-05-13
21 : 1995-01-13
22 : 1995-10-13
23 : 1996-09-13
24 : 1996-12-13
25 : 1997-06-13
26 : 1998-02-13
27 : 1998-03-13
28 : 1998-11-13
29 : 1999-08-13
30 : 2000-10-13
31 : 2001-04-13
32 : 2001-07-13
33 : 2002-09-13
34 : 2002-12-13
35 : 2003-06-13
36 : 2004-02-13
37 : 2004-08-13
38 : 2005-05-13
39 : 2006-01-13
40 : 2006-10-13
41 : 2007-04-13
42 : 2007-07-13
43 : 2008-06-13
44 : 2009-02-13
45 : 2009-03-13
46 : 2009-11-13
47 : 2010-08-13
48 : 2011-05-13
49 : 2012-01-13
50 : 2012-04-13
51 : 2012-07-13
52 : 2013-09-13
53 : 2013-12-13
54 : 2014-06-13
55 : 2015-02-13
56 : 2015-03-13
57 : 2015-11-13
58 : 2016-05-13
59 : 2017-01-13
60 : 2017-10-13
61 : 2018-04-13
62 : 2018-07-13
63 : 2019-09-13
64 : 2019-12-13
65 : 2020-03-13