Home
last modified time | relevance | path

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

/external/python/cpython2/Modules/
Ddatetimemodule.c239 #define DI100Y 36524 /* days_before_year(101); days in 100 years */ macro
283 n100 = n / DI100Y; in ord_to_ymd()
284 n = n % DI100Y; in ord_to_ymd()
4895 assert(DI400Y == 4 * DI100Y + 1); in initdatetime()
4901 assert(DI100Y == 25 * DI4Y - 1); in initdatetime()
4902 assert(DI100Y == days_before_year(100+1)); in initdatetime()
/external/python/cpython3/Modules/
D_datetimemodule.c261 #define DI100Y 36524 /* days_before_year(101); days in 100 years */ macro
305 n100 = n / DI100Y; in ord_to_ymd()
306 n = n % DI100Y; in ord_to_ymd()
6450 Py_BUILD_ASSERT(DI400Y == 4 * DI100Y + 1); in PyInit__datetime()
6456 Py_BUILD_ASSERT(DI100Y == 25 * DI4Y - 1); in PyInit__datetime()
6457 assert(DI100Y == days_before_year(100+1)); in PyInit__datetime()