Name
time — Displays the the date and time, the status of the NTP, and the NTP's IP/hostname and minimum polling interval seconds.
Syntax
time [<TIME>] [zone [<ZONE>]] [ntp [--enable | --disable [<IP | FQDN>] [<INTERVAL>]]
Options
<TIME>Sets the board's date and time in the format <yyyy-mm-dd> <hh:mm:ss>.
zone<ZONE>Displays and manages time zones.
Use the optional argument
ZONEto set a specific time zone.ntpDisplays and manages the NTP servers.
Optional arguments:
- No option
Displays the current configuration.
--enableEnables NTP.
--disableDisables NTP.
<IP|FDQN>Specifies the IP or FQDN of the NTP server.
<INTERVAL>Specifies the polling interval in seconds.
Examples
time 2023-10-05 12:34:56 time zone America/New_York time ntp --enable ntp.example.com 600 time ntp --disable time ntp ntp.example.com