execute date
retrieves, updates, or synchronizes the host's date
Synopsis
execute date interacts with the host's date settings.
Running the command with no arguments will return the current date.
Running the command and passing a date (of the format YYYY-MM-DD) will attempt to update the host's date to the provided date. If the host is synchronized with a time protocol other than NTP, the date will not be updated. If the date is successfully updated, host synchronization with the network will be disabled.
Passing the synch argument will attempt to synchronize the host's date with the network date.
execute date [synch|YYYY-MM-DD] [flags]
Options
-h, --help help for date
See also
- execute - for executing commands on the host
- execute time - retrieves, updates, or synchronizes the host's time
- execute timezone - for managing the host's timezone