diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-01-27 14:40:02 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-01-27 14:40:02 +0000 |
commit | a9b04beba4f5a026f14936aae08c42cb8d1aa571 (patch) | |
tree | 92bb37eaeb0dea1e3deacb20bedb835f86f7c354 | |
parent | 565505abd4f4fe6aec3ac3a8c12f1b55018cb4d3 (diff) |
get_time() for sim
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3172 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | uisimulator/common/stubs.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); |