Binary Clock Time Encoding: Pure Base-2 vs. BCD Registers
Converting human clock time (HH:MM:SS) into binary format maps sexagesimal hours (0–23), minutes (0–59), and seconds (0–59) into base-2 bit strings. Hardware Real-Time Clock (RTC) integrated circuits such as the DS3231 and embedded microcontrollers store civil clock registers in either pure 6-bit binary or Binary-Coded Decimal (BCD), where each decimal digit occupies a dedicated 4-bit nibble.
Because the maximum value for minutes and seconds is 59 (111011 in binary), 6 bits suffice to hold every hour, minute, or second component cleanly. Representing total elapsed seconds since midnight (0 to 86,399) requires exactly 17 bits since 2^17 = 131,072 > 86,400.