[Python-Dev] Vacation and possibly a new bug
Tue, 22 Jul 2003 16:33:54 -0700
Guido van Rossum wrote:
>>And why does ``t = (time((time_t *)0) / YEAR) * YEAR;`` on line 608 have
>>to divide by YEAR and then multiply by YEAR? Shouldn't those cancel out?
> I guess it should have used // instead of /. (X//Y)*Y is a standard
> way to round X down to a whole multiple of Y, and I presume that's
> what the code here does.
Didn't know C had a flooring divide operator. Good to know.