Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Setting Date and Time using Unix Cmd
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting Date and Time using Unix Cmd



"Gahlla, Sunny (UKCRO)" <email@hidden> writes:
>Does anyone know the command for setting this using Send Unix Cmd??

All commands, send as root, don't display results.

systemsetup -setusingnetworktime on (if network time use is off then this turns
it on.)
systemsetup -setusingnetworktime off (turns off network time use, then you can
set "manually" like this:
systemsetup -settime 12:16:30 to set it to 12:16am and 30 seconds. It sets by
military time I think.

There are a whole suite of commands:


	Usage: systemsetup -setdate <mm:dd:yy>	Set current date to <mm:dd:yy>.	Usage:
systemsetup -gettime	Display current time.	sage: systemsetup -getdate	Display
current date.	Usage: systemsetup -settime <hh:mm:ss>	Set current time to
<hh:mm:ss>.	Usage: systemsetup -gettimezone	Display current time zone.	Usage:
systemsetup -settimezone <timezone>	Set current time zone to <timezone>. Use
"-listtimezones" to list 	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>.
There are a few alternative commands too -

NTP
 If they are NOT running ntpd,
         /usr/sbin/ntpdate -bvs

If they ARE, send this as root:
         SystemStarter restart NetworkTime (for tiger)
	SystemStarter restart Network\ Time (for panther)


'    '   '  ' ' ' ''"""""""""""'' ' '  '   '    '
Steven Kolins
Alamance-Burlington Schools, NC USA
LanTech/Mac Systems Tech
336-570-6060x110

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Remote-desktop mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Setting Date and Time using Unix Cmd (From: "Gahlla, Sunny (UKCRO)" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.