zephyr/lib/posix
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
..
options libc: common: implement multiple time functions 2024-08-21 16:59:15 -04:00
shell posix: deprecate POSIX_ENV _CONFSTR _SYSCONF and _UNAME 2024-06-04 16:27:12 -05:00
CMakeLists.txt lib: posix: shell: Fix compiler warning of lib__posix__shell 2024-03-15 06:30:31 -04:00
Kconfig posix: separate shell utilities and posix api implementation 2024-02-01 05:26:24 -05:00