a3a14b9db7
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. |
||
---|---|---|
.. | ||
accel.py | ||
accel.py.exp | ||
adc.py | ||
adc.py.exp | ||
can.py | ||
can.py.exp | ||
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 | ||
modtime.py | ||
modtime.py.exp | ||
pin.py | ||
pin.py.exp | ||
pyb1.py | ||
pyb1.py.exp | ||
rtc.py | ||
rtc.py.exp | ||
servo.py | ||
servo.py.exp | ||
spi.py | ||
spi.py.exp | ||
switch.py | ||
switch.py.exp | ||
timer.py | ||
timer.py.exp | ||
timer_callback.py | ||
timer_callback.py.exp | ||
uart.py | ||
uart.py.exp |