commit | a9b04beba4f5a026f14936aae08c42cb8d1aa571 | [log] [tgz] |
---|---|---|
author | Daniel Stenberg <daniel@haxx.se> | Mon Jan 27 14:40:02 2003 +0000 |
committer | Daniel Stenberg <daniel@haxx.se> | Mon Jan 27 14:40:02 2003 +0000 |
tree | 92bb37eaeb0dea1e3deacb20bedb835f86f7c354 | |
parent | 565505abd4f4fe6aec3ac3a8c12f1b55018cb4d3 [diff] |
get_time() for sim git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3172 a1c6a512-1295-4272-9138-f99709370657
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c index ac484a4..e25c3ec 100644 --- a/uisimulator/common/stubs.c +++ b/uisimulator/common/stubs.c
@@ -124,6 +124,13 @@ (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);