micropython/ports
Yoctopuce dev df05caea6c shared/timeutils: Standardize supported date range on all platforms.
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>
2025-07-09 11:54:21 +10:00
..
alif alif/machine_spi: Improve transfer function to poll events. 2025-07-03 21:43:10 +10:00
bare-arm shared/libc/string0: Don't deref args for n==0 case. 2023-11-07 16:01:50 +11:00
cc3200 shared/timeutils: Standardize supported date range on all platforms. 2025-07-09 11:54:21 +10:00
embed all: Prune trailing whitespace. 2024-03-07 16:25:17 +11:00
esp32 shared/timeutils: Standardize supported date range on all platforms. 2025-07-09 11:54:21 +10:00
esp8266 shared/timeutils: Standardize supported date range on all platforms. 2025-07-09 11:54:21 +10:00
mimxrt shared/timeutils: Standardize supported date range on all platforms. 2025-07-09 11:54:21 +10:00
minimal all: Rename the "NORETURN" macro to "MP_NORETURN". 2025-05-13 10:36:47 +10:00
nrf ports: Update board.json files for vendor/product consistency. 2025-06-04 01:47:59 +10:00
pic16bit all: Rename the "NORETURN" macro to "MP_NORETURN". 2025-05-13 10:36:47 +10:00
powerpc all: Rename the "NORETURN" macro to "MP_NORETURN". 2025-05-13 10:36:47 +10:00
qemu all: Rename the "NORETURN" macro to "MP_NORETURN". 2025-05-13 10:36:47 +10:00
renesas-ra shared/timeutils: Standardize supported date range on all platforms. 2025-07-09 11:54:21 +10:00
rp2 rp2/CMakeLists.txt: Make linker script configurable. 2025-06-19 11:00:10 +10:00
samd samd/boards: Change the SparkFun vendor name to SparkFun. 2025-06-19 15:12:49 +02:00
stm32 shared/timeutils: Standardize supported date range on all platforms. 2025-07-09 11:54:21 +10:00
unix shared/timeutils: Standardize supported date range on all platforms. 2025-07-09 11:54:21 +10:00
webassembly webassembly/objpyproxy: Avoid throwing on symbol or iterator has-check. 2025-07-04 15:08:03 +10:00
windows shared/timeutils: Standardize supported date range on all platforms. 2025-07-09 11:54:21 +10:00
zephyr zephyr/machine_pin: Retry configuring gpio with just GPIO_OUTPUT. 2025-07-08 11:15:11 +10:00