A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2019-April/157123.html below:

[Python-Dev] bpo-36558: Change time.mktime() return type from float to int?

[Python-Dev] bpo-36558: Change time.mktime() return type from float to int? [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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4