MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / intToDay

Function intToDay

code/other/dates.cpp:1–1  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1int intToDay(int jd) { return jd % 7; }
2int dateToInt(int y, int m, int d) {
3 return 1461 * (y + 4800 + (m - 14) / 12) / 4 +
4 367 * (m - 2 - (m - 14) / 12 * 12) / 12 -

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected