Setting up the system clock

The system clock records the time of system events, allows you to schedule system events (such as running hardware diagnostics at 3:00 a.m.), and tells when you first created or last saved files.

Use the date command to set your system clock. Use the setclock command to set the time and date by contacting a time server.