<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/pytime.c, branch v3.5.5</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/'/>
<entry>
<title>pytime.c: rename pygettimeofday_new() to pygettimeofday()</title>
<updated>2015-11-10T11:11:39+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-11-10T11:11:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=c379ade1bb0cd1636050d5576a9db1030c136a55'/>
<id>c379ade1bb0cd1636050d5576a9db1030c136a55</id>
<content type='text'>
I forgot to rename it in my previous refactoring of pytime.c.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I forgot to rename it in my previous refactoring of pytime.c.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #25155: Fix _PyTime_Divide() rounding</title>
<updated>2015-09-18T12:21:14+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-09-18T12:21:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=ec26f83f2ea13d7f15c461ac49d46dfcdf49b8ec'/>
<id>ec26f83f2ea13d7f15c461ac49d46dfcdf49b8ec</id>
<content type='text'>
_PyTime_Divide() rounding was wrong: copy code from Python default which has
now much better unit tests.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
_PyTime_Divide() rounding was wrong: copy code from Python default which has
now much better unit tests.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #25155: Add _PyTime_AsTimevalTime_t() function</title>
<updated>2015-09-18T11:36:17+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-09-18T11:36:17+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=9a8b177e60cc5cc6d5105519c0df8fb185211e1d'/>
<id>9a8b177e60cc5cc6d5105519c0df8fb185211e1d</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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>oops, rename pymonotonic_new() to pymonotonic()</title>
<updated>2015-09-02T22:14:58+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-09-02T22:14:58+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=5ad5821d0960994b0cdf3ed451de48e5b2490704'/>
<id>5ad5821d0960994b0cdf3ed451de48e5b2490704</id>
<content type='text'>
I was not supposed to commit the function with the name pymonotonic_new(). I
forgot to rename it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I was not supposed to commit the function with the name pymonotonic_new(). I
forgot to rename it.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #24707: Remove assertion in monotonic clock</title>
<updated>2015-09-02T22:13:46+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-09-02T22:13:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=c3c616c3d193c211bd435380593a20ec13e07b7b'/>
<id>c3c616c3d193c211bd435380593a20ec13e07b7b</id>
<content type='text'>
Don't check anymore at runtime that the monotonic clock doesn't go backward.
Yes, it happens. It occurs sometimes each month on a Debian buildbot slave
running in a VM.

The problem is that Python cannot do anything useful if a monotonic clock goes
backward. It was decided in the PEP 418 to not fix the system, but only expose
the clock provided by the OS.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Don't check anymore at runtime that the monotonic clock doesn't go backward.
Yes, it happens. It occurs sometimes each month on a Debian buildbot slave
running in a VM.

The problem is that Python cannot do anything useful if a monotonic clock goes
backward. It was decided in the PEP 418 to not fix the system, but only expose
the clock provided by the OS.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #22117: Add a new _PyTime_FromSeconds() function</title>
<updated>2015-04-03T11:10:54+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-04-03T11:10:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=13019fdef3b6d589f8d7602943c76fcc637114ea'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix also _Py_InitializeEx_Private(): initialize time before initializing
import, import_init() uses the _PyTime API (for thread locks).
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #22117, issue #23485: Fix _PyTime_AsMilliseconds() and</title>
<updated>2015-04-01T15:47:07+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-04-01T15:47:07+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=62d1c70eff9498446d2ce3c564fefee7a7e54770'/>
<id>62d1c70eff9498446d2ce3c564fefee7a7e54770</id>
<content type='text'>
_PyTime_AsMicroseconds() rounding.

Add also unit tests.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
_PyTime_AsMicroseconds() rounding.

Add also unit tests.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #23485: Add _PyTime_FromMillisecondsObject() function</title>
<updated>2015-03-30T19:36:10+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-03-30T19:36:10+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=fa09beb1508f782b51ba0a2815c07e0294f40e95'/>
<id>fa09beb1508f782b51ba0a2815c07e0294f40e95</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #22117: Try to fix rounding in conversion from Python double to _PyTime_t</title>
<updated>2015-03-30T08:22:16+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-03-30T08:22:16+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=45cff0c0e6c4a31ed3b5b88ee803320862fbd43a'/>
<id>45cff0c0e6c4a31ed3b5b88ee803320862fbd43a</id>
<content type='text'>
using the C volatile keyword.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
using the C volatile keyword.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #22117: Remove _PyTime_ROUND_DOWN and _PyTime_ROUND_UP rounding methods</title>
<updated>2015-03-30T01:57:14+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-03-30T01:57:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=a695f83f0de060a77352174be8a5c6f6500ab98a'/>
<id>a695f83f0de060a77352174be8a5c6f6500ab98a</id>
<content type='text'>
Use _PyTime_ROUND_FLOOR and _PyTime_ROUND_CEILING instead.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use _PyTime_ROUND_FLOOR and _PyTime_ROUND_CEILING instead.
</pre>
</div>
</content>
</entry>
</feed>
