<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Include/pytime.h, branch v3.6.2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/pytime.h?h=v3.6.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/pytime.h?h=v3.6.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2016-09-28T21:31:35Z</updated>
<entry>
<title>Issue #28148: Stop using localtime() and gmtime() in the time module.</title>
<updated>2016-09-28T21:31:35Z</updated>
<author>
<name>Alexander Belopolsky</name>
<email>alexander.belopolsky@gmail.com</email>
</author>
<published>2016-09-28T21:31:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3e7a3cb903258321a17265a1c01976f88e7b72fc'/>
<id>urn:sha1:3e7a3cb903258321a17265a1c01976f88e7b72fc</id>
<content type='text'>
Introduced platform independent _PyTime_localtime API that is similar
to POSIX localtime_r, but available on all platforms.  Patch by Ed
Schouten.
</content>
</entry>
<entry>
<title>replace Python aliases for standard integer types with the standard integer types (#17884)</title>
<updated>2016-09-06T20:24:00Z</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2016-09-06T20:24:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9b3d77052f58858ebe1f6ff0dd8dc1caf933cd62'/>
<id>urn:sha1:9b3d77052f58858ebe1f6ff0dd8dc1caf933cd62</id>
<content type='text'>
</content>
</entry>
<entry>
<title>replace PY_LONG_LONG with long long</title>
<updated>2016-09-06T17:46:49Z</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2016-09-06T17:46:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=af580dff4af3cb812cdd7a229a4a65059b3bc1ee'/>
<id>urn:sha1:af580dff4af3cb812cdd7a229a4a65059b3bc1ee</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #25155: Add _PyTime_AsTimevalTime_t() function</title>
<updated>2015-09-18T11:23:02Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-09-18T11:23:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1e2b6882fc28a3cded227f55e4dc3f937afd678e'/>
<id>urn:sha1:1e2b6882fc28a3cded227f55e4dc3f937afd678e</id>
<content type='text'>
On Windows, the tv_sec field of the timeval structure has the type C long,
whereas it has the type C time_t on all other platforms. A C long has a size of
32 bits (signed inter, 1 bit for the sign, 31 bits for the value) which is not
enough to store an Epoch timestamp after the year 2038.

Add the _PyTime_AsTimevalTime_t() function written for datetime.datetime.now():
convert a _PyTime_t timestamp to a (secs, us) tuple where secs type is time_t.
It allows to support dates after the year 2038 on Windows.

Enhance also _PyTime_AsTimeval_impl() to detect overflow on the number of
seconds when rounding the number of microseconds.
</content>
</entry>
<entry>
<title>Make _PyTime_RoundHalfEven() private again</title>
<updated>2015-09-09T20:28:09Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-09-09T20:28:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ce6aa749b40d39c8eb82463068cc58f974fbfdf5'/>
<id>urn:sha1:ce6aa749b40d39c8eb82463068cc58f974fbfdf5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #23517: fromtimestamp() and utcfromtimestamp() methods of</title>
<updated>2015-09-08T23:02:23Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-09-08T23:02:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7667f58151d5efbbae4f0b1d7178f99dad0d74c0'/>
<id>urn:sha1:7667f58151d5efbbae4f0b1d7178f99dad0d74c0</id>
<content type='text'>
datetime.datetime now round microseconds to nearest with ties going to nearest
even integer (ROUND_HALF_EVEN), as round(float), instead of rounding towards
-Infinity (ROUND_FLOOR).

pytime API: replace _PyTime_ROUND_HALF_UP with _PyTime_ROUND_HALF_EVEN. Fix
also _PyTime_Divide() for negative numbers.

_PyTime_AsTimeval_impl() now reuses _PyTime_Divide() instead of reimplementing
rounding modes.
</content>
</entry>
<entry>
<title>Issue #23517: datetime.timedelta constructor now rounds microseconds to nearest</title>
<updated>2015-09-02T17:16:07Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-09-02T17:16:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2ec558739e6bd32365e1a883889f9d5372b35719'/>
<id>urn:sha1:2ec558739e6bd32365e1a883889f9d5372b35719</id>
<content type='text'>
with ties going away from zero (ROUND_HALF_UP), as Python 2 and Python older
than 3.3, instead of rounding to nearest with ties going to nearest even
integer (ROUND_HALF_EVEN).
</content>
</entry>
<entry>
<title>Issue #23517: Add "half up" rounding mode to the _PyTime API</title>
<updated>2015-09-01T23:43:56Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-09-01T23:43:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=744742320f259776dab1c8ef86e22225ef569d17'/>
<id>urn:sha1:744742320f259776dab1c8ef86e22225ef569d17</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #23834: Fix the default socket timeout</title>
<updated>2015-04-09T08:23:12Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-04-09T08:23:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=88ed640fc7aec18c6148525801186264ebef8a75'/>
<id>urn:sha1:88ed640fc7aec18c6148525801186264ebef8a75</id>
<content type='text'>
Use -1 second by default, not -1 nanosecond.
</content>
</entry>
<entry>
<title>Issue #22117: Add a new _PyTime_FromSeconds() function</title>
<updated>2015-04-03T11:10:54Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-04-03T11:10:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=13019fdef3b6d589f8d7602943c76fcc637114ea'/>
<id>urn:sha1:13019fdef3b6d589f8d7602943c76fcc637114ea</id>
<content type='text'>
Fix also _Py_InitializeEx_Private(): initialize time before initializing
import, import_init() uses the _PyTime API (for thread locks).
</content>
</entry>
</feed>
