diff options
author | Yoctopuce dev <dev@yoctopuce.com> | 2025-07-01 13:16:20 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-07-09 11:54:21 +1000 |
commit | df05caea6c6437a8b4756ec502a5e6210f4b6256 (patch) | |
tree | 4ffab6a3b85bb8a287e661d55a7ddc59f80357d9 /ports/stm32/timer.c | |
parent | c4a88f2ce7da87d5f635ec25edba481917020fd8 (diff) | |
download | micropython-master.tar.gz micropython-master.zip |
This is code makes sure that time functions work properly on a
reasonable date range, on all platforms, regardless of the epoch.
The suggested minimum range is 1970 to 2099.
In order to reduce code footprint, code to support far away dates
is only enabled specified by the port.
New types are defined to identify timestamps.
The implementation with the smallest code footprint is when
support timerange is limited to 1970-2099 and Epoch is 1970.
This makes it possible to use 32 bit unsigned integers for
all timestamps.
On ARM4F, adding support for dates up to year 3000 adds
460 bytes of code. Supporting dates back to 1600 adds
another 44 bytes of code.
Signed-off-by: Yoctopuce dev <dev@yoctopuce.com>
Diffstat (limited to 'ports/stm32/timer.c')
0 files changed, 0 insertions, 0 deletions