mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 05:35:20 -05:00
get_time() for sim
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3172 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
565505abd4
commit
a9b04beba4
1 changed files with 7 additions and 0 deletions
|
|
@ -124,6 +124,13 @@ void backlight_set_on_when_charging(bool beep)
|
||||||
(void)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)
|
int rtc_read(int address)
|
||||||
{
|
{
|
||||||
time_t now = time(NULL);
|
time_t now = time(NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue