43 static constexpr struct {
47 {-400 * kMilliSecondsInADay, 10},
51 {364.9 * kMilliSecondsInADay, 11},
52 {365.0 * kMilliSecondsInADay, 0},
53 {365.1 * kMilliSecondsInADay, 0},
55 {2 * 365.0 * kMilliSecondsInADay, 0},
56 {3 * 365.0 * kMilliSecondsInADay, 11},
57 {(3 * 365.0 + 1) * kMilliSecondsInADay, 0},
59 {30 * kMilliSecondsInADay, 0},
60 {31 * kMilliSecondsInADay, 1},
61 {58 * kMilliSecondsInADay, 1},
62 {59 * kMilliSecondsInADay, 2},
63 {89 * kMilliSecondsInADay, 2},
64 {90 * kMilliSecondsInADay, 3},
65 {119 * kMilliSecondsInADay, 3},
66 {120 * kMilliSecondsInADay, 4},
67 {150 * kMilliSecondsInADay, 4},
68 {151 * kMilliSecondsInADay, 5},
69 {180 * kMilliSecondsInADay, 5},
70 {181 * kMilliSecondsInADay, 6},
71 {211 * kMilliSecondsInADay, 6},
72 {212 * kMilliSecondsInADay, 7},
73 {242 * kMilliSecondsInADay, 7},
74 {243 * kMilliSecondsInADay, 8},
75 {272 * kMilliSecondsInADay, 8},
76 {273 * kMilliSecondsInADay, 9},
77 {303 * kMilliSecondsInADay, 9},
78 {304 * kMilliSecondsInADay, 10},
79 {333 * kMilliSecondsInADay, 10},
80 {334 * kMilliSecondsInADay, 11},
81 {364 * kMilliSecondsInADay, 11},
83 {(2 * 365.0 + 30) * kMilliSecondsInADay, 0},
84 {(2 * 365.0 + 31) * kMilliSecondsInADay, 1},
85 {(2 * 365.0 + 59) * kMilliSecondsInADay, 1},
86 {(2 * 365.0 + 60) * kMilliSecondsInADay, 2},
87 {(2 * 365.0 + 90) * kMilliSecondsInADay, 2},
88 {(2 * 365.0 + 91) * kMilliSecondsInADay, 3},
89 {(2 * 365.0 + 120) * kMilliSecondsInADay, 3},
90 {(2 * 365.0 + 121) * kMilliSecondsInADay, 4},
91 {(2 * 365.0 + 151) * kMilliSecondsInADay, 4},
92 {(2 * 365.0 + 152) * kMilliSecondsInADay, 5},
93 {(2 * 365.0 + 181) * kMilliSecondsInADay, 5},
94 {(2 * 365.0 + 182) * kMilliSecondsInADay, 6},
95 {(2 * 365.0 + 212) * kMilliSecondsInADay, 6},
96 {(2 * 365.0 + 213) * kMilliSecondsInADay, 7},
97 {(2 * 365.0 + 243) * kMilliSecondsInADay, 7},
98 {(2 * 365.0 + 244) * kMilliSecondsInADay, 8},
99 {(2 * 365.0 + 273) * kMilliSecondsInADay, 8},
100 {(2 * 365.0 + 274) * kMilliSecondsInADay, 9},
101 {(2 * 365.0 + 304) * kMilliSecondsInADay, 9},
102 {(2 * 365.0 + 305) * kMilliSecondsInADay, 10},
103 {(2 * 365.0 + 334) * kMilliSecondsInADay, 10},
104 {(2 * 365.0 + 335) * kMilliSecondsInADay, 11},
107 for (
const auto& test : kTests) {