Home | History | Annotate | Download | only in Modules

Lines Matching refs:seconds

40  * carries from adding seconds.
83 #define GET_TD_SECONDS(o) (((PyDateTime_Delta *)(o))->seconds)
87 #define SET_TD_SECONDS(o, v) ((o)->seconds = (v))
453 /* Fiddle days (d), seconds (s), and microseconds (us) so that
726 * that seconds and microseconds are already in their proper ranges. In any
731 new_delta_ex(int days, int seconds, int microseconds, int normalize,
737 normalize_d_s_us(&days, &seconds, &microseconds);
738 assert(0 <= seconds && seconds < 24*3600);
748 SET_TD_SECONDS(self, seconds);
1081 format_ctime(PyDateTime_Date *date, int hours, int minutes, int seconds)
1096 GET_DAY(date), hours, minutes, seconds,
1495 * (24*3600*self.days + self.seconds)*1000000 + self.microseconds
1511 x2 = PyNumber_Multiply(x1, seconds_per_day); /* days in seconds */
1517 /* x2 has days in seconds */
1518 x1 = PyInt_FromLong(GET_TD_SECONDS(self)); /* seconds */
1521 x3 = PyNumber_Add(x1, x2); /* days and seconds in seconds */
1528 /* x3 has days+seconds in seconds */
1535 /* x1 has days+seconds in us */
1581 num = PyTuple_GetItem(tuple, 0); /* leftover seconds */
1592 num = PyTuple_GetItem(tuple, 1); /* seconds */
1685 int seconds = GET_TD_SECONDS(left) + GET_TD_SECONDS(right);
1688 result = new_delta(days, seconds, microseconds, 1);
1744 int seconds = GET_TD_SECONDS(left) - GET_TD_SECONDS(right);
1747 result = new_delta(days, seconds, microseconds, 1);
1835 /* Fold in the value of the tag ("seconds", "weeks", etc) component of a
1947 "days", "seconds", "microseconds", "milliseconds",
1976 y = accum("seconds", x, second, us_per_second, &leftover_us);
2047 int seconds = GET_TD_SECONDS(self);
2056 minutes = divmod(seconds, 60, &seconds);
2069 hours, minutes, seconds);
2137 {"seconds", T_INT, OFFSET(seconds), READONLY,
2138 PyDoc_STR("Number of seconds (>= 0 and less than 1 day).")},
2147 PyDoc_STR("Total seconds in the duration.")},
3372 /* Convert everything except microseconds to seconds. These
3373 * can't overflow (no more than the # of seconds in 2 days).
3748 /* The platform localtime/gmtime may insert leap seconds,
4149 * seconds in one day.
4361 int seconds;
4368 seconds = DATE_GET_HOUR(self) * 3600 +
4372 seconds,