diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2009-08-11 17:54:47 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2009-08-11 17:54:47 +0000 |
commit | ed73a3274ca4bb3dec0cf067732bcdf4fe1a7d62 (patch) | |
tree | 8ac2786b04bc7149ced718b8c80e98010b7164fc /firmware/include/timefuncs.h | |
parent | 6cea3308d05c21aabe073f77c3d013485b0429a0 (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.h | 2 |
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 |