MCPcopy Create free account
hub / github.com/chen3feng/toft / Date

Method Date

system/time/date.cpp:19–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17};
18
19Date::Date(int year, int month, int day) {
20 if (!Set(year, month, day))
21 throw std::runtime_error("Invalid date");
22}
23
24void Date::AdjustMonthLimit() {
25 if (m_month == 2 && m_day > 28) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected