<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/lib/timeutils, branch v1.5.2</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.5.2</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.5.2'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2015-05-21T20:31:50+00:00</updated>
<entry>
<title>lib: Fix some issues in timeutils</title>
<updated>2015-05-21T20:31:50+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2015-05-18T15:26:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a3a14b9db79d3af24e724832092d1861ec231365'/>
<id>urn:sha1:a3a14b9db79d3af24e724832092d1861ec231365</id>
<content type='text'>
In particular, dates prior to Mar 1, 2000 are screwed up.

The easiest way to see this is to do:

&gt;&gt;&gt; import time
&gt;&gt;&gt; time.localtime(0)
(2000, 1, 1, 0, 0, 0, 5, 1)
&gt;&gt;&gt; time.localtime(1)
(2000, 1, 2, 233, 197, 197, 6, 2)

With this patch, we instead get:
&gt;&gt;&gt; import time
&gt;&gt;&gt; time.localtime(1)
(2000, 1, 1, 0, 0, 1, 5, 1)

Doh - In C % is NOT a modulo operator, it's a remainder operator.
</content>
</entry>
<entry>
<title>lib: Move time utility functions to common library.</title>
<updated>2015-05-12T23:12:54+00:00</updated>
<author>
<name>Josef Gajdusek</name>
<email>atx@atx.name</email>
</author>
<published>2015-05-11T00:00:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1db42538864e1f235fee1b37b44ca428b1f3c427'/>
<id>urn:sha1:1db42538864e1f235fee1b37b44ca428b1f3c427</id>
<content type='text'>
</content>
</entry>
</feed>
