Exemplo n.º 1
0
Arquivo: ds1307.c Projeto: shtomik/AVR
unsigned char ds1307_getdayofweek(unsigned char y, unsigned char m, unsigned char d)
{
    int day = ds1307_date2days(y,m,d);
    return (day + 6) % 7;
}
Exemplo n.º 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;
}