Home
last modified time | relevance | path

Searched refs:DI400Y (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/
Ddatetimemodule.c240 #define DI400Y 146097 /* days_before_year(401); days in 400 years */ macro
272 n400 = ordinal / DI400Y; in ord_to_ymd()
273 n = ordinal % DI400Y; in ord_to_ymd()
4895 assert(DI400Y == 4 * DI100Y + 1); in initdatetime()
4896 assert(DI400Y == days_before_year(400+1)); in initdatetime()
/external/python/cpython3/Modules/
D_datetimemodule.c279 #define DI400Y 146097 /* days_before_year(401); days in 400 years */ macro
311 n400 = ordinal / DI400Y; in ord_to_ymd()
312 n = ordinal % DI400Y; in ord_to_ymd()
6689 Py_BUILD_ASSERT(DI400Y == 4 * DI100Y + 1); in PyInit__datetime()
6690 assert(DI400Y == days_before_year(400+1)); in PyInit__datetime()