MCPcopy Create free account
hub / github.com/bytedance/bolt / daysBeforeMonthFirstDay

Function daysBeforeMonthFirstDay

bolt/type/TimestampConversion.cpp:648–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646}
647
648int64_t daysBeforeMonthFirstDay(int32_t year, int32_t month) {
649 return isLeapYear(year) ? kCumulativeLeapDays[month - 1]
650 : kCumulativeDays[month - 1];
651}
652
653int64_t daysSinceEpochFromDate(
654 int32_t year,

Callers 2

parseMethod · 0.85
toCivilDateTimeFunction · 0.85

Calls 1

isLeapYearFunction · 0.85

Tested by

no test coverage detected