<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/shared-bindings/time/__init__.c, 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>2020-02-07T15:24:11+00:00</updated>
<entry>
<title>time.sleep() rounds to nearest msec</title>
<updated>2020-02-07T15:24:11+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@halwitz.org</email>
</author>
<published>2020-02-07T15:24:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=cbd519bfa6bb3e2f56a07e977c47159059f1fc8d'/>
<id>urn:sha1:cbd519bfa6bb3e2f56a07e977c47159059f1fc8d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>improve time.monotonic_ns() accuracy from ms to us</title>
<updated>2020-02-07T15:02:50+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@halwitz.org</email>
</author>
<published>2020-02-07T15:02:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=857d8ab40a6e4ef7d0cc78f481511070c1af15e3'/>
<id>urn:sha1:857d8ab40a6e4ef7d0cc78f481511070c1af15e3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>time: struct_time: allow construction like a namedtuple, too</title>
<updated>2019-11-26T14:45:44+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2019-11-26T14:45:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e188ae8b230c464d1deb4cc4a1e853c32d093c4d'/>
<id>urn:sha1:e188ae8b230c464d1deb4cc4a1e853c32d093c4d</id>
<content type='text'>
Whenever there is more than one argument, delegate the operation to
namedtuple_make_new.  This allows other circuitpython-compatible
idioms, like with keywords
    time.struct_time(tm_year=2000, tm_mon=1, tm_mday=1, tm_hour=0,
        tm_min=0, tm_sec=14, tm_wday=5, tm_yday=5, tm_isdst=-1)
with 9 positional arguments, etc.

The only vaguely plausible CPython behavior still not permitted in
CircuitPython that I found is constructing a timetuple from a length-9
list, a la
    time.struct_time(list(time.localtime())

Even better, by getting rid of an error message, the build shrinks a
tiny bit.
</content>
</entry>
<entry>
<title>time: struct_time: allow construction from another struct_time</title>
<updated>2019-11-26T14:45:40+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2019-11-26T14:33:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=8f24ea48fbddf19429e02a211bae62c3913e4f9d'/>
<id>urn:sha1:8f24ea48fbddf19429e02a211bae62c3913e4f9d</id>
<content type='text'>
This doesn't cover ALL the cases that CPython permits for construction
of a struct_time, but it at least makes constructing from any namedtuple
work.

Closes: #2326
</content>
</entry>
<entry>
<title>shared-bindings/time: style</title>
<updated>2019-08-18T13:11:14+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2019-08-18T13:11:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f384d2dd8004e1becac6183243caef4b4bbedf56'/>
<id>urn:sha1:f384d2dd8004e1becac6183243caef4b4bbedf56</id>
<content type='text'>
</content>
</entry>
<entry>
<title>localtime: don't hard-fault on argument type errors; handle localtime(float)</title>
<updated>2019-08-18T01:49:25+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2019-08-18T01:49:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9d164965c9fe04f3485b6ee213507548cac403d0'/>
<id>urn:sha1:9d164965c9fe04f3485b6ee213507548cac403d0</id>
<content type='text'>
It turns out `mp_obj_int_get_checked` is not appropriate to call when
the argument is not of int or long type--the "checked" refers to guarding
against overflow/underflow, not type checking.

For compatibility with CPython, handle float arguments.

Closes: #2069
</content>
</entry>
<entry>
<title>BLE: peripheral client pairing (not yet bonding); fix time doc formatting</title>
<updated>2019-07-30T18:26:26+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@halwitz.org</email>
</author>
<published>2019-07-30T18:26:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=83129b8c63e58596add0d111360701aab51ce62b'/>
<id>urn:sha1:83129b8c63e58596add0d111360701aab51ce62b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Improve rST consistency for rst2pyi use</title>
<updated>2019-05-31T02:02:47+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2019-05-31T02:01:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=cfe24b85322a029758c3376eed2726657397bf33'/>
<id>urn:sha1:cfe24b85322a029758c3376eed2726657397bf33</id>
<content type='text'>
</content>
</entry>
<entry>
<title> fix kw_arg checking for time.struct_time()</title>
<updated>2019-01-25T19:57:31+00:00</updated>
<author>
<name>Jerry Needell</name>
<email>jerryneedell@gmail.com</email>
</author>
<published>2019-01-25T19:57:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=44bd9d1013f93be4f0d69b3d17decc73c257d011'/>
<id>urn:sha1:44bd9d1013f93be4f0d69b3d17decc73c257d011</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add subclass support to displayio.</title>
<updated>2019-01-15T01:29:19+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2019-01-15T01:26:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=747f2cfe267628fda8487c533ce7a5ab10a9388f'/>
<id>urn:sha1:747f2cfe267628fda8487c533ce7a5ab10a9388f</id>
<content type='text'>
Also, swap make_news to accept a kwarg map and refine param checking.

Fixes #1237
</content>
</entry>
</feed>
