nuttx/libs/libc/time
Jukka Laitinen 116a325763 libs/libc/time: Add configuration options for the strftime
This adds 3 configuration options for the lib_strftime, which can be
used to save flash memory when all the formatters are not needed by an
embedded application.

There is always a minimal set of formatters supported:
"%a, %b/%h, %d, %H, %m, %M, %S, %Y, %%". To add on top of that one can
specify:

- LIBC_STRFTIME_C_STANDARD_FORMATS  : All ISO-C conversion specifiers
- LIBC_STRFTIME_POSIX_FORMATS       : Additional posix formats
- LIBC_STRFTIME_NONSTANDARD_FORMATS : Additional GNU nonstandard formats

All of these are enabled by default unless building for CONFIG_DEFAULT_SMALL.
Disabling these options can save over 3KB of flash on an 32-bit
ARM system, when all the format specifiers are not needed.

Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>
2026-06-04 14:29:33 +08:00
..
CMakeLists.txt libc/time: add lib_strptime 2024-10-16 17:02:51 +08:00
Kconfig libs/libc/time: Add configuration options for the strftime 2026-06-04 14:29:33 +08:00
lib_asctime.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_asctimer.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_calendar2utc.c !sys/types.h: change time_t and clock_t to int64_t to align with other OSes 2026-05-19 16:21:28 +08:00
lib_ctime.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_ctimer.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_dayofweek.c libs: unify Private Types banners 2025-05-28 10:17:15 +08:00
lib_daysbeforemonth.c sched: Correct word spelling mistakes. 2025-05-12 19:56:29 +08:00
lib_difftime.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_gethrtime.c !nuttx: drop redundant casts on tv_sec/tv_nsec and fix printf formats 2026-05-19 16:21:28 +08:00
lib_gettimeofday.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_gmtime.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
lib_gmtimer.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
lib_isleapyear.c libs: unify Private Types banners 2025-05-28 10:17:15 +08:00
lib_localtime.c style: Fix "is is" typo across the codebase. 2026-03-24 09:39:26 +08:00
lib_nanosleep.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_settimeofday.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_strftime.c libs/libc/time: Add configuration options for the strftime 2026-06-04 14:29:33 +08:00
lib_strptime.c strptime.c:len is not defined. 2024-10-16 17:02:51 +08:00
lib_time.c !sys/types.h: change time_t and clock_t to int64_t to align with other OSes 2026-05-19 16:21:28 +08:00
lib_timegm.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
lib_timespec_get.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
Make.defs libc/time: add lib_strptime 2024-10-16 17:02:51 +08:00