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
accel.py.exp
adc.py
adc.py.exp
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
dac.py.exp
extint.py
extint.py.exp
halerror.py
halerror.py.exp
i2c.py
i2c.py.exp
irq.py
irq.py.exp
led.py
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
pin.py.exp
pyb1.py
pyb1.py.exp
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
servo.py.exp
spi.py
spi.py.exp
switch.py
switch.py.exp
timer.py
timer.py.exp
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
uart.py.exp