zephyr/lib/libc/common/source
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
..
stdlib libc: common: Fix init hang issue 2024-06-26 13:07:02 -04:00
string libc: Move strnlen into common 2023-05-08 09:59:27 +02:00
thrd libc: common: support for C11 call_once() 2023-11-14 18:23:42 +09:00
time libc: common: implement multiple time functions 2024-08-21 16:59:15 -04:00