• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to change system time in Mach-O on OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to change system time in Mach-O on OS X


  • Subject: Re: How to change system time in Mach-O on OS X
  • From: Andrew Pinski <email@hidden>
  • Date: Tue, 27 Aug 2002 09:04:54 -0400

try settimeofday(2)

Thanks,
Andrew Pinski

PS you have to be root to change the date though.



On Tuesday, Aug 27, 2002, at 07:48 US/Eastern, Bhavdeep Sharma wrote:

Hi,

I need to change the System time.
I used the SetDateTime() (defined in OSUtils.h).
On OS X in Carbon environment it gets compiled and linked fine.

But in Mach-O it gives the compilation error. Please suggest the equivalent
Mach-O function that
can change the system time.

Thanks in advance.
Bhavdeep
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >How to change system time in Mach-O on OS X (From: Bhavdeep Sharma <email@hidden>)

  • Prev by Date: Re: launch app
  • Next by Date: Re: Why would sheet's default button not respond to return key?
  • Previous by thread: How to change system time in Mach-O on OS X
  • Next by thread: what happened to option-double-click to see docs?
  • Index(es):
    • Date
    • Thread