[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
More information about the Python-Dev mailing list
Tue Apr 16 10:44:22 EDT 2019
- Previous message (by thread): [Python-Dev] bpo-36558: Change time.mktime() return type from float to int?
- Next message (by thread): [Python-Dev] bpo-36558: Change time.mktime() return type from float to int?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>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
- Previous message (by thread): [Python-Dev] bpo-36558: Change time.mktime() return type from float to int?
- Next message (by thread): [Python-Dev] bpo-36558: Change time.mktime() return type from float to int?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list