Home
last modified time | relevance | path

Searched refs:EPOCHORDINAL (Results 1 - 3 of 3) sorted by relevance

/third_party/python/Lib/zoneinfo/
H A D_zoneinfo.py12 EPOCHORDINAL = datetime(1970, 1, 1).toordinal() variable
187 (dt.toordinal() - EPOCHORDINAL) * 86400
513 return y * 365 + y // 4 - y // 100 + y // 400 - EPOCHORDINAL
/third_party/python/Modules/
H A D_zoneinfo.c97 static const int EPOCHORDINAL = 719163; variable
1209 int64_t ordinal = ymd_to_ord(year, self->month, month_day) - EPOCHORDINAL; in calendarrule_year_to_timestamp()
1279 int64_t days_before_year = ymd_to_ord(year, 1, 1) - EPOCHORDINAL - 1; in dayrule_year_to_timestamp()
2258 *local_ts = (int64_t)(ord - EPOCHORDINAL) * 86400 + in get_local_timestamp()
/third_party/python/Lib/test/
H A Ddatetimetester.py5941 EPOCHORDINAL = date(1970, 1, 1).toordinal() variable in ZoneInfo
5951 timestamp = ((dt.toordinal() - self.EPOCHORDINAL) * 86400
5974 timestamp = ((dt.toordinal() - self.EPOCHORDINAL) * 86400

Completed in 13 milliseconds