MCPcopy Create free account
hub / github.com/eggert/tz / utoff_diff

Function utoff_diff

localtime.c:2548–2553  ·  view source on GitHub ↗

Return A - B, where both are in the range -2**31 + 1 .. 2**31 - 1. The result cannot overflow. */

Source from the content-addressed store, hash-verified

2546 yourtm.tm_min = min % MINSPERHOUR;
2547 if (yourtm.tm_min < 0) {
2548 yourtm.tm_min += MINSPERHOUR;
2549 hour--;
2550 }
2551
2552 mday = yourtm.tm_mday;
2553 mday += hour / HOURSPERDAY;
2554 yourtm.tm_hour = hour % HOURSPERDAY;
2555 if (yourtm.tm_hour < 0) {
2556 yourtm.tm_hour += HOURSPERDAY;

Callers 2

time2subFunction · 0.85
time1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected