Set NTP Time by command line

Usage: systemsetup -settimezone <timezone>
Set current time zone to <timezone>. Use “-listtimezones” to list time zones.

Usage: systemsetup -listtimezones
List time zones supported by this machine.

Usage: systemsetup -getusingnetworktime
Display whether network time is on or off.

Usage: systemsetup -setusingnetworktime <on off>
Set using network time to either <on> or <off>.

Usage: systemsetup -getnetworktimeserver
Display network time server.

Usage: systemsetup -setnetworktimeserver <timeserver>
Set network time server to <timeserver>.

Leave a Reply

Your email address will not be published. Required fields are marked *