2 Copyright 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: ReadBattClock() function.
11 #include "battclock_intern.h"
12 #include <aros/debug.h>
13 #include <proto/battclock.h>
14 #include <proto/exec.h>
15 #include <proto/utility.h>
16 #include <utility/date.h>
19 AROS_LH1(void, WriteBattClock
,
20 AROS_LHA(ULONG
, time
, D0
),
21 struct BattClockBase
*, BattClockBase
, 3, Battclock
)
26 struct ClockData date
;
28 D(bug("[Battclock] WriteBattClock()\n"));
30 Amiga2Date(time
, &date
);
33 tm
.wMonth
= date
.month
;
36 tm
.wMinute
= date
.min
;
37 tm
.wSecond
= date
.sec
;
38 /* Day of week is just informative and can be ignored */
41 BattClockBase
->KernelIFace
->SetSystemTime(&tm
);