RX8581_REG_DW
tm->tm_wday = ilog2(date[RX8581_REG_DW] & 0x7F);
buf[RX8581_REG_DW] = (0x1 << tm->tm_wday);