Exemple #1
0
unsigned char ds1307_getdayofweek(unsigned char y, unsigned char m, unsigned char d)
{
    int day = ds1307_date2days(y,m,d);
    return (day + 6) % 7;
}
Exemple #2
0
/*
 * get day of a week
 */
uint8_t ds1307_getdayofweek(uint8_t y, uint8_t m, uint8_t d) {
	uint16_t day = ds1307_date2days(y, m, d);
	return (day + 6) % 7;
}