mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-01 23:21:56 +00:00
The algorithm for converting broken-down civil time to seconds in the POSIX epoch time scale would produce undefined behavior on a toolchain that uses a 32-bit time_t in cases where the referenced time could not be represented exactly. However, there are use cases in Zephyr for civil time conversions outside the 32-bit representable range of 1901-12-13T20:45:52Z through 2038-01-19T03:14:07Z inclusive. Add new API that specifically returns a 64-bit signed seconds count, and revise the existing API to detect out-of-range values and convert them to a diagnosible error. Closes #18465 Signed-off-by: Peter A. Bigot <pab@pabigot.com> |
||
---|---|---|
.. | ||
__assert.h | ||
atomic.h | ||
base64.h | ||
byteorder.h | ||
crc.h | ||
dlist.h | ||
errno_private.h | ||
fdtable.h | ||
libc-hooks.h | ||
list_gen.h | ||
math_extras_impl.h | ||
math_extras.h | ||
mempool_base.h | ||
mempool.h | ||
mutex.h | ||
printk.h | ||
rb.h | ||
ring_buffer.h | ||
sem.h | ||
sflist.h | ||
slist.h | ||
speculation.h | ||
sys_io.h | ||
timeutil.h | ||
util.h |