micropython/tests/pyb
Dave Hylands a3a14b9db7 lib: Fix some issues in timeutils
In particular, dates prior to Mar 1, 2000 are screwed up.

The easiest way to see this is to do:

>>> import time
>>> time.localtime(0)
(2000, 1, 1, 0, 0, 0, 5, 1)
>>> time.localtime(1)
(2000, 1, 2, 233, 197, 197, 6, 2)

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

Doh - In C % is NOT a modulo operator, it's a remainder operator.
2015-05-21 23:31:50 +03:00
..
accel.py tests, pyb: Add 'import pyb' when needed. 2014-05-04 12:40:51 +01:00
accel.py.exp tests: Add a suite of tests specifically for the pyboard. 2014-05-03 16:43:27 +01:00
adc.py stmhal: Fix adc.read_timed so buffer store respects element size. 2015-03-13 22:11:50 +00:00
adc.py.exp stmhal: Fix adc.read_timed so buffer store respects element size. 2015-03-13 22:11:50 +00:00
can.py stmhal: Add support for sending and receiving CAN RTR messages. 2015-04-18 14:53:00 +01:00
can.py.exp stmhal: Add support for sending and receiving CAN RTR messages. 2015-04-18 14:53:00 +01:00
dac.py tests, pyb: Add 'import pyb' when needed. 2014-05-04 12:40:51 +01:00
dac.py.exp tests: Add a suite of tests specifically for the pyboard. 2014-05-03 16:43:27 +01:00
extint.py tests, pyb: Add 'import pyb' when needed. 2014-05-04 12:40:51 +01:00
extint.py.exp tests: Add a suite of tests specifically for the pyboard. 2014-05-03 16:43:27 +01:00
halerror.py stmhal: Fix HAL error raising; make test for it. 2014-11-15 20:39:44 +00:00
halerror.py.exp stmhal: Fix HAL error raising; make test for it. 2014-11-15 20:39:44 +00:00
i2c.py tests, pyb: Add 'import pyb' when needed. 2014-05-04 12:40:51 +01:00
i2c.py.exp tests: Add a suite of tests specifically for the pyboard. 2014-05-03 16:43:27 +01:00
irq.py tests: Add test for pyb.disable_irq and pyb.enable_irq. 2014-08-25 18:44:10 +01:00
irq.py.exp tests: Add test for pyb.disable_irq and pyb.enable_irq. 2014-08-25 18:44:10 +01:00
led.py tests, pyb: Add 'import pyb' when needed. 2014-05-04 12:40:51 +01:00
led.py.exp stmhal: Make LED object print LED(x) for consistency with constructor. 2015-04-11 21:50:53 +01:00
modtime.py lib: Fix some issues in timeutils 2015-05-21 23:31:50 +03:00
modtime.py.exp lib: Fix some issues in timeutils 2015-05-21 23:31:50 +03:00
pin.py tests, pyb: Update pin test. 2014-08-08 22:38:58 +01:00
pin.py.exp tests, pyb: Update pin test. 2014-08-08 22:38:58 +01:00
pyb1.py tests: Add a suite of tests specifically for the pyboard. 2014-05-03 16:43:27 +01:00
pyb1.py.exp tests: Add a suite of tests specifically for the pyboard. 2014-05-03 16:43:27 +01:00
rtc.py sthmal/rtc.c: Add calibration() method to get/set RTC fine-tuning value. 2015-05-11 23:48:39 +01:00
rtc.py.exp sthmal/rtc.c: Add calibration() method to get/set RTC fine-tuning value. 2015-05-11 23:48:39 +01:00
servo.py tests: Add a suite of tests specifically for the pyboard. 2014-05-03 16:43:27 +01:00
servo.py.exp tests: Add a suite of tests specifically for the pyboard. 2014-05-03 16:43:27 +01:00
spi.py stmhal: Change SPI phase spec to 0,1 to match standard conventions. 2014-10-26 13:54:31 +00:00
spi.py.exp tests: Get misc/print_exception and pyb/spi working on pyboard. 2014-12-18 13:37:56 +00:00
switch.py tests, pyb: Add 'import pyb' when needed. 2014-05-04 12:40:51 +01:00
switch.py.exp tests: Add a suite of tests specifically for the pyboard. 2014-05-03 16:43:27 +01:00
timer.py tests: Add more tests for pyb.Timer class. 2015-02-23 13:18:33 +00:00
timer.py.exp tests: Add more tests for pyb.Timer class. 2015-02-23 13:18:33 +00:00
timer_callback.py tests: Make pyb/timer test check callback timing properly. 2015-03-20 23:50:33 +00:00
timer_callback.py.exp tests: Make pyb/timer test check callback timing properly. 2015-03-20 23:50:33 +00:00
uart.py tests: Update pyb/uart.py test since baudrate of 1200 is too low. 2015-02-27 00:40:08 +00:00
uart.py.exp tests: Update pyb/uart.py test since baudrate of 1200 is too low. 2015-02-27 00:40:08 +00:00