summaryrefslogtreecommitdiff
path: root/firmware/include/timefuncs.h
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2009-08-11 17:54:47 +0000
committerFrank Gevaerts <frank@gevaerts.be>2009-08-11 17:54:47 +0000
commited73a3274ca4bb3dec0cf067732bcdf4fe1a7d62 (patch)
tree8ac2786b04bc7149ced718b8c80e98010b7164fc /firmware/include/timefuncs.h
parent6cea3308d05c21aabe073f77c3d013485b0429a0 (diff)
Add support for setting the clock using a special SCSI command. This is the same method that itunes uses, and there are host-side tools for it (e.g. libgpod)
Flyspray: FS#10514 Author: Laurent Papier and myself git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22255 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include/timefuncs.h')
-rw-r--r--firmware/include/timefuncs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/include/timefuncs.h b/firmware/include/timefuncs.h
index 45978f4e2e..52d4608287 100644
--- a/firmware/include/timefuncs.h
+++ b/firmware/include/timefuncs.h
@@ -29,6 +29,8 @@
struct tm *get_time(void);
int set_time(const struct tm *tm);
bool valid_time(const struct tm *tm);
+int day_of_week(int m, int d, int y);
+void yearday_to_daymonth(int yd, int y, int *d, int *m);
#if CONFIG_RTC
time_t mktime(struct tm *t);
#endif