MCPcopy Create free account
hub / github.com/IoLanguage/io / Duration_fromComponents_

Function Duration_fromComponents_

libs/basekit/source/Duration.c:67–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void Duration_fromComponents_(Duration *self, DurationComponents c) {
68 double t = c.years * SECONDS_IN_YEAR;
69 t += c.days * SECONDS_IN_DAY;
70 t += c.hours * SECONDS_IN_HOUR;
71 t += c.minutes * SECONDS_IN_MINUTE;
72 t += c.seconds;
73 self->seconds = t;
74}
75
76// years --------------------------------------------------------
77

Callers 5

Duration_setYears_Function · 0.85
Duration_setDays_Function · 0.85
Duration_setHours_Function · 0.85
Duration_setMinutes_Function · 0.85
Duration_setSeconds_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected