zephyr/lib/libc
Yong Cong Sin fe94d4354a libc: common: implement multiple time functions
Implemented the following:
- `asctime_r()`
- `asctime()`
- `localtime()`
- `localtime_r()`
- `ctime()`
- `ctime_r()`

Specifically:
- the implementation of `localtime()` & `localtime_r()` simply
  wraps around the gmtime() & gmtime_r() functions, the
  results are always expressed as UTC.
- `ctime()` is equivalent to `asctime(localtime(clock))`, it
  inherits the limitation of `localtime()` as well, which only
  supports UTC results currently.

Added tests for these newly implemented functions.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
2024-08-21 16:59:15 -04:00
..
arcmwdt ARCMWDT: Fix issues with posix types 2024-07-01 18:14:34 +02:00
armstdc lib: libc: errno: remove non-existing c_std_lib doxygen group 2024-07-18 09:23:33 -04:00
common libc: common: implement multiple time functions 2024-08-21 16:59:15 -04:00
minimal libc: common: implement multiple time functions 2024-08-21 16:59:15 -04:00
newlib libc: newlib: add config to use custom sbrk 2024-08-07 07:25:46 -04:00
picolibc lib/libc: picolibc: select its source with Kconfig choice 2024-07-09 17:29:12 -04:00
CMakeLists.txt
Kconfig lib/libc: select PICOLIBC_SUPPORTED if toolchain has it or module exists 2024-07-05 12:30:42 +02:00