<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/lib/timeutils, branch 5.3.x</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=5.3.x</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=5.3.x'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2018-08-25T18:43:02+00:00</updated>
<entry>
<title>Fix os.stat() to use 1970 epoch</title>
<updated>2018-08-25T18:43:02+00:00</updated>
<author>
<name>Noralf Trønnes</name>
<email>noralf@tronnes.org</email>
</author>
<published>2018-08-25T16:11:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=39ee12d1ac6ffb105f6ac0994f6169a7bb327cbd'/>
<id>urn:sha1:39ee12d1ac6ffb105f6ac0994f6169a7bb327cbd</id>
<content type='text'>
Commit 95e70cd0ea6d 'time: Use 1970 epoch' changed epoch for the time
module, but not for other users. This patch does the same for the only
other core timeutils user: extmod/vfs_fat.c:fat_vfs_stat().
Other timeutils users: cc3200, esp8266 and stm32, are not changed.

Ports that don't use long ints, will still get wrong time values from
os.stat().
</content>
</entry>
<entry>
<title>all: Use the name MicroPython consistently in comments</title>
<updated>2017-07-31T08:35:40+00:00</updated>
<author>
<name>Alexander Steffen</name>
<email>devel.20.webmeister@spamgourmet.com</email>
</author>
<published>2017-06-30T07:22:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=55f33240f3d7051d4213629e92437a36f1fac50e'/>
<id>urn:sha1:55f33240f3d7051d4213629e92437a36f1fac50e</id>
<content type='text'>
There were several different spellings of MicroPython present in comments,
when there should be only one.
</content>
</entry>
<entry>
<title>all: Unify header guard usage.</title>
<updated>2017-07-18T01:57:39+00:00</updated>
<author>
<name>Alexander Steffen</name>
<email>devel.20.webmeister@spamgourmet.com</email>
</author>
<published>2017-06-29T21:14:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=299bc625864b9e624ed599c94a5f95870516139a'/>
<id>urn:sha1:299bc625864b9e624ed599c94a5f95870516139a</id>
<content type='text'>
The code conventions suggest using header guards, but do not define how
those should look like and instead point to existing files. However, not
all existing files follow the same scheme, sometimes omitting header guards
altogether, sometimes using non-standard names, making it easy to
accidentally pick a "wrong" example.

This commit ensures that all header files of the MicroPython project (that
were not simply copied from somewhere else) follow the same pattern, that
was already present in the majority of files, especially in the py folder.

The rules are as follows.

Naming convention:
* start with the words MICROPY_INCLUDED
* contain the full path to the file
* replace special characters with _

In addition, there are no empty lines before #ifndef, between #ifndef and
one empty line before #endif. #endif is followed by a comment containing
the name of the guard macro.

py/grammar.h cannot use header guards by design, since it has to be
included multiple times in a single C file. Several other files also do not
need header guards as they are only used internally and guaranteed to be
included only once:
* MICROPY_MPHALPORT_H
* mpconfigboard.h
* mpconfigport.h
* mpthreadport.h
* pin_defs_*.h
* qstrdefs*.h
</content>
</entry>
<entry>
<title>various: Spelling fixes</title>
<updated>2017-05-29T08:36:05+00:00</updated>
<author>
<name>Ville Skyttä</name>
<email>ville.skytta@iki.fi</email>
</author>
<published>2017-05-29T07:08:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ca16c3821053e5bf2b87aeb10007f73f31dc1eac'/>
<id>urn:sha1:ca16c3821053e5bf2b87aeb10007f73f31dc1eac</id>
<content type='text'>
</content>
</entry>
<entry>
<title>all: Use full path name when including mp-readline/timeutils/netutils.</title>
<updated>2017-03-31T11:29:39+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-03-31T11:29:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b6c7e4b143d96ff9f84ccb22d83b1e15ab084250'/>
<id>urn:sha1:b6c7e4b143d96ff9f84ccb22d83b1e15ab084250</id>
<content type='text'>
This follows the pattern of how all other headers are now included, and
makes it explicit where the header file comes from.  This patch also
removes -I options from Makefile's that specify the mp-readline/timeutils/
netutils directories, which are no longer needed.
</content>
</entry>
<entry>
<title>lib/timeutils/timeutils: Fix pedantic warning in coverage build.</title>
<updated>2016-06-03T07:46:15+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-06-03T07:46:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1bc8aa85a40870f72db7c99977d0cd177443bccf'/>
<id>urn:sha1:1bc8aa85a40870f72db7c99977d0cd177443bccf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>lib/timeutils/timeutils: timeutils_mktime may accept negative time values.</title>
<updated>2016-06-02T19:52:42+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-06-02T19:52:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=993cc3611a991aaf2ac9066d0bec852de27eab9b'/>
<id>urn:sha1:993cc3611a991aaf2ac9066d0bec852de27eab9b</id>
<content type='text'>
And will normalize them.
</content>
</entry>
<entry>
<title>lib/timeutils/timeutils: Typo fix in comment.</title>
<updated>2016-04-27T15:52:57+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-04-27T15:52:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=50ef851bee4e006e576f1d6b3ce55f7e726e3e9b'/>
<id>urn:sha1:50ef851bee4e006e576f1d6b3ce55f7e726e3e9b</id>
<content type='text'>
</content>
</entry>
<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>
