Set Date and Time from the CLI
To set an initial date and time via the CLI, do the following:
Set the time zone by entering the following command:
$ tzconfig
Example:JS$ tzconfig Please identify a location so that time zone rules can be set correctly. Please select a continent or ocean. 1) Africa 2) Americas 3) Antarctica ... $? 2 Please select a country. 1) Antigua & Barbuda 2) Anguilla 3) Netherlands Antilles 4) Argentina 5) Aruba 6) Barbados 7) Bolivia 8) Brazil 9) Bahamas 10) Belize 11) Canada 12) Chile ... $? 11 Please select one of the following time zone regions 1) St_Johns 2) Halifax 3) Glace_Bay 4) Goose_Bay 5) Montreal 6) Toronto ... $? 5 Time zone changed successfully, no REBOOT required.
Set the date and time by entering the following command:
$ dtconfig YYYYMMDDhhmm\[.00\]
Example:JS$ dtconfig 201505171522.00 Thu May 17 15:22:00 EDT 2015