* Adjusts a datetimestruct based on a seconds offset. Assumes * the current values are valid. */
| 2043 | * the current values are valid. |
| 2044 | */ |
| 2045 | NPY_NO_EXPORT void |
| 2046 | add_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 |
nothing calls this directly
no test coverage detected