2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
5 Desc: ReadBattClock() function.
8 #include "battclock_intern.h"
10 #include <proto/battclock.h>
11 #include <proto/utility.h>
12 #include <proto/rtas.h>
13 #include <proto/exec.h>
14 #include <utility/date.h>
16 /* See rom/battclock/readbattclock.c for documentation */
18 AROS_LH0(ULONG
, ReadBattClock
,
19 struct BattClockBase
*, BattClockBase
, 2, Battclock
)
23 struct ClockData date
;
24 void *RTASBase
= OpenResource("rtas.resource");
28 RTASCall("get-time-of-day", 0, 8, out
, NULL
);
37 secs
=Date2Amiga(&date
);