58

Viewing or Changing the System Date

To view the current system date:

$ sudo systemsetup -getdate

or

$ serversetup -getDate

To set the current system date:

$ sudo systemsetup -setdate mm:dd:yy

or

$ sudo serversetup -setDate mm/dd/yy

Viewing or Changing the System Time

To view the current system time:

$ sudo systemsetup -gettime

or

$ serversetup -getTime

To change the current system time:

$ sudo systemsetup -settime hh:mm:ss

or

$ sudo serversetup -setTime hh:mm:ss

Viewing or Changing the System Time Zone

To view the current time zone:

$ sudo systemsetup -gettimezone

or

$ serversetup -getTimeZone

To view the available time zones:

$ sudo systemsetup -listtimezones

To change the system time zone:

$ sudo systemsetup -settimezone timezone

or

$ sudo serversetup -setTimeZone timezone

Viewing or Changing Network Time Server Usage

To see if a network time server is being used:

$ sudo systemsetup -getusingnetworktime

Chapter 5 Setting General System Preferences

Page 58
Image 58
Apple Mac OS X Server manual Viewing or Changing the System Date, Viewing or Changing the System Time