summaryrefslogtreecommitdiff
path: root/docs/develop/extendingmicropython.rst
diff options
context:
space:
mode:
authorOliver Joos <oliver.joos@feller.ch>2020-12-16 22:35:52 +0100
committerDamien George <damien@micropython.org>2021-01-23 16:55:24 +1100
commit290dc1d5eeba005bdc604a9eb2d781a922081c29 (patch)
treee6d58e95bebb11b70950993f05e62c8b69790e40 /docs/develop/extendingmicropython.rst
parent419134bea47953888344d325220c376117f6b2b4 (diff)
unix/modtime: Fix time() precision on unix ports with non-double floats.
With MICROPY_FLOAT_IMPL_FLOAT the results of utime.time(), gmtime() and localtime() change only every 129 seconds. As one consequence tests/extmod/vfs_lfs_mtime.py will fail on a unix port with LFS support. With this patch these functions only return floats if MICROPY_FLOAT_IMPL_DOUBLE is used. Otherwise they return integers.
Diffstat (limited to 'docs/develop/extendingmicropython.rst')
0 files changed, 0 insertions, 0 deletions