Usually those devices stored the number of days in each month in a table. They had limited memory so only stored up to a certain date.