Jump to content

Set system time using Terminal


jknights
 Share

6 posts in this topic

Recommended Posts

I would like to be able to set my system time from the Terminal application to a particular time & date combination.

 

Is there a script that I can run to do this?.

 

Please can somebody post and example or tell me where to do this.

 

I have tried to use Automator to do this but I keep getting an error.

 

Thanks

Jonathan

Link to comment
Share on other sites

Thanks, I'll give that a try.

 

I then need to be able to reset the system time back to Apple Eurozone time but I can do that manually I guess.

 

It's a shame the Automator function doesnt seem to be able to cope with this.

Link to comment
Share on other sites

I dont seem to be able to set the date but that may be because I am not using the right format.

I can read the date using date '+%D'

 

I also read somewhere that it is not possible to set OSX system date. I sthis true ?

 

 

Please can somebody help me?

Link to comment
Share on other sites

  • 3 weeks later...

Thanks very much for suggestions.

 

I have now managed to get it working using the date function.

I'll write a script so I can automate further.

Link to comment
Share on other sites

 Share

×
×
  • Create New...