2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
9 /*********************************************************************************************/
12 #include <aros/macros.h>
15 #include <aros/debug.h>
21 /*********************************************************************************************/
23 void InitPrefs(BOOL use
, BOOL save
)
28 Amiga2Date(tv
.tv_secs
, &clockdata
);
30 if (use
|| save
) Cleanup(NULL
);
33 /*********************************************************************************************/
39 secs
= Date2Amiga(&clockdata
);
41 TimerIO
->tr_node
.io_Command
= TR_SETSYSTIME
;
42 TimerIO
->tr_time
.tv_secs
= secs
;
43 TimerIO
->tr_time
.tv_micro
= 0;
45 DoIO(&TimerIO
->tr_node
);
50 /*********************************************************************************************/
57 /*********************************************************************************************/
59 void RestorePrefs(void)
61 InitPrefs(FALSE
, FALSE
);
64 /*********************************************************************************************/