From a9b04beba4f5a026f14936aae08c42cb8d1aa571 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 27 Jan 2003 14:40:02 +0000 Subject: get_time() for sim git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3172 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/common/stubs.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'uisimulator') diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c index ac484a4d11..e25c3ec2ce 100644 --- a/uisimulator/common/stubs.c +++ b/uisimulator/common/stubs.c @@ -124,6 +124,13 @@ void backlight_set_on_when_charging(bool beep) (void)beep; } +/* original is in firmware/common/timefuncs.c */ +struct tm *get_time(void) +{ + time_t now = time(NULL); + return localtime(&now); +} + int rtc_read(int address) { time_t now = time(NULL); -- cgit v1.2.3