MCPcopy Create free account
hub / github.com/numpy/numpy / add_seconds_to_datetimestruct

Function add_seconds_to_datetimestruct

numpy/core/src/multiarray/datetime.c:2045–2053  ·  view source on GitHub ↗

* Adjusts a datetimestruct based on a seconds offset. Assumes * the current values are valid. */

Source from the content-addressed store, hash-verified

2043 * the current values are valid.
2044 */
2045NPY_NO_EXPORT void
2046add_seconds_to_datetimestruct(npy_datetimestruct *dts, int seconds)
2047{
2048 int minutes;
2049
2050 dts->sec += seconds;
2051 minutes = extract_unit_32(&dts->sec, 60);
2052 add_minutes_to_datetimestruct(dts, minutes);
2053}
2054
2055/*
2056 * Adjusts a datetimestruct based on a minutes offset. Assumes

Callers

nothing calls this directly

Calls 2

extract_unit_32Function · 0.85

Tested by

no test coverage detected