MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / IsValid

Method IsValid

Sources/Shared/Containers/DateTime.cpp:1003–1007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1001 }
1002
1003 bool DateTime::Tm::IsValid() const noexcept
1004 {
1005 return (Year != -1 && Month >= 0 && Month < 12 && (Day > 0 && Day <= Implementation::GetNumberOfDaysInMonth(Month, Year)) &&
1006 (Hour >= 0 && Hour < 24) && (Minute >= 0 && Minute < 60) && (Second >= 0 && Second < 62) && (Millisecond >= 0 && Millisecond < 1000));
1007 }
1008
1009 void DateTime::Tm::AddMonths(std::int32_t monDiff) noexcept
1010 {

Callers 1

TryParseFormatFunction · 0.45

Calls 1

GetNumberOfDaysInMonthFunction · 0.85

Tested by

no test coverage detected