finish time_to_bcd.c