summaryrefslogtreecommitdiff
path: root/firmware/include/timefuncs.h
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-04-20 10:23:57 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-04-20 10:23:57 +0000
commit7ddf0d673dbb0dbcb6b534db92da5797b9c22ba6 (patch)
tree90d2dc9a52104a8a8120c82c6c164fd3f868085a /firmware/include/timefuncs.h
parent18d5d30c1c7aa62adb376025be60da792b8db2ca (diff)
downloadrockbox-7ddf0d673dbb0dbcb6b534db92da5797b9c22ba6.tar.gz
rockbox-7ddf0d673dbb0dbcb6b534db92da5797b9c22ba6.zip
Reworked the time get/set functions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4522 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include/timefuncs.h')
-rw-r--r--firmware/include/timefuncs.h21
1 files changed, 4 insertions, 17 deletions
diff --git a/firmware/include/timefuncs.h b/firmware/include/timefuncs.h
index 3845b946c5..5c6719e709 100644
--- a/firmware/include/timefuncs.h
+++ b/firmware/include/timefuncs.h
@@ -21,24 +21,11 @@
21#define _TIMEFUNCS_H_ 21#define _TIMEFUNCS_H_
22 22
23#include "config.h" 23#include "config.h"
24 24#include <stdbool.h>
25#ifndef SIMULATOR 25#include "time.h"
26
27struct tm
28{
29 int tm_sec; /* seconds */
30 int tm_min; /* minutes */
31 int tm_hour; /* hours */
32 int tm_mday; /* day of the month */
33 int tm_mon; /* month */
34 int tm_year; /* year since 1900 */
35 int tm_wday; /* day of the week */
36 int tm_yday; /* day in the year */
37 int tm_isdst; /* daylight saving time */
38};
39
40#endif
41 26
42struct tm *get_time(void); 27struct tm *get_time(void);
28int set_time(struct tm *tm);
29bool valid_time(struct tm *tm);
43 30
44#endif /* _TIMEFUNCS_H_ */ 31#endif /* _TIMEFUNCS_H_ */