get_time() for sim

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3172 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2003-01-27 14:40:02 +00:00
parent 565505abd4
commit a9b04beba4

View file

@ -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);