circuitpython/shared-bindings/time
Jeff Epler 9d164965c9 localtime: don't hard-fault on argument type errors; handle localtime(float)
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
2019-08-17 20:49:25 -05:00
..
__init__.c localtime: don't hard-fault on argument type errors; handle localtime(float) 2019-08-17 20:49:25 -05:00
__init__.h Add rtc module 2018-04-16 12:49:10 +02:00