[Python-Dev] bpo-36558: Change time.mktime() return type from float to int?
Stéphane Wirtel
stephane at wirtel.be
Tue Apr 16 10:44:22 EDT 2019
>I would like to change mktime() return type to make the function more
>consistent: all inputs are integers, it sounds wrong to me to return
>float. The result should be integer as well.
In C, the signature of mktime is time_t mktime(struct tm *time);
from Wikipedia, the Unix time_t data type, on many platforms, is a
signed integer, tradionally (32bits). In the newer operating systems,
time_t has been widened to 64 bits.
--
Stéphane Wirtel - https://wirtel.be - @matrixise
More information about the Python-Dev
mailing list