* Calculates the minutes offset from the 1970 epoch. */
| 180 | * Calculates the minutes offset from the 1970 epoch. |
| 181 | */ |
| 182 | NPY_NO_EXPORT npy_int64 |
| 183 | get_datetimestruct_minutes(const npy_datetimestruct *dts) |
| 184 | { |
| 185 | npy_int64 days = get_datetimestruct_days(dts) * 24 * 60; |
| 186 | days += dts->hour * 60; |
| 187 | days += dts->min; |
| 188 | |
| 189 | return days; |
| 190 | } |
| 191 | |
| 192 | /* |
| 193 | * Modifies '*days_' to be the day offset within the year, |
no test coverage detected