On May 2, 2006, at 8:09 PM, Carlo Rubini wrote:
I'd like to change by code the date and time settings of my
computer (i.e. without accessing the Time Control Panel).
Can anybody supply the right declares in order to do it?
Soft Declare Function SetDateTime Lib "Carbon.framework" (time as
UInt32) as Short
Here, the time parameter is the number of seconds since January 1,
1904. But the Apple docs state that one must go through
Authorization Services to use this in MacOS X. SetDateTime and
related functions are part of the Date, Time, and Measurement
Utilities Reference. The header files are DateTimeUtils.h and
UTCUtils.h.
Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>