zephyr/subsys/shell/modules/CMakeLists.txt
Nick Ward c411ed9322 shell: modules: Add date commands to display or set date
Currently only supports Unix time.

‘get’ subcommand returns date in format “Y-m-d H:M:S”
‘set’ subcommand format is ‘[Y-m-d] <H:M:S>’

The ‘set’ subcommand is implemented with basic date validation.

For user convenience of small adjustments to time the time argument
will accept H:M:S, :M:S or ::S where the missing field(s) will be
filled in by the previous time state.

Signed-off-by: Nick Ward <nix.ward@gmail.com>
2020-03-10 15:04:12 +02:00

15 lines
236 B
CMake

# SPDX-License-Identifier: Apache-2.0
zephyr_sources_ifdef(
CONFIG_KERNEL_SHELL
kernel_service.c
)
zephyr_sources_ifdef(
CONFIG_DEVICE_SHELL
device_service.c
)
zephyr_sources_ifdef(
CONFIG_DATE_SHELL
date_service.c
)