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

Function get_datetimestruct_minutes

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

* Calculates the minutes offset from the 1970 epoch. */

Source from the content-addressed store, hash-verified

180 * Calculates the minutes offset from the 1970 epoch.
181 */
182NPY_NO_EXPORT npy_int64
183get_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,

Callers 1

Calls 1

get_datetimestruct_daysFunction · 0.85

Tested by

no test coverage detected