Work on bug #8435.  These are the functions to encode and decode the real time clock data.