setclock command
The setclock command displays or sets the time and date by requesting the current time from a time server on a network.
To display your system's date and time, enter:
/usr/sbin/setclock
The setclock command takes the first response from the time server, converts the calendar clock reading found there, and shows the local date and time. If no time server responds, or if the network is not operational, the setclock command displays a message to that effect and leaves the date and time settings unchanged.
Note: Any host running the inetd daemon can act as a time server.
With root authority, you can use the setclock command
to send an Internet TIME service request to a time server host and sets the
local date and time accordingly. For example:
setclock TimeHost
Where TimeHost is the host name or IP address of the time server.