Skip to content
Commit c411ed93 authored by Nick Ward's avatar Nick Ward Committed by Johan Hedberg
Browse files

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: default avatarNick Ward <nix.ward@gmail.com>
parent 347f6784
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment