MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / leaps_thru_end_of

Function leaps_thru_end_of

src/date.cpp:1221–1224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1219 } // #nocov end
1220
1221 static int leaps_thru_end_of(const int y) {
1222 return (y >= 0) ? (y / 4 - y / 100 + y / 400) :
1223 -(leaps_thru_end_of(-(y + 1)) + 1);
1224 }
1225
1226 static struct tm * timesub(const time_t *const timep, const int_fast32_t offset,
1227 const struct state *const sp, struct tm *const tmp) {

Callers 1

timesubFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected