2 Copyright 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: ReadBattClock() function.
9 #include "battclock_intern.h"
10 #include <proto/battclock.h>
11 #include <proto/exec.h>
12 #include <proto/utility.h>
13 #include <utility/date.h>
15 AROS_LH0(ULONG
, ReadBattClock
, struct BattClockBase
*, BattClockBase
, 2, Battclock
)
20 struct ClockData date
;
23 BattClockBase
->KernelIFace
->GetSystemTime(&tm
);
26 date
.month
= tm
.wMonth
;
29 date
.min
= tm
.wMinute
;
30 date
.sec
= tm
.wSecond
;
31 /* Day of week is just informative and can be ignored */
33 return Date2Amiga(&date
);