I'd suggest grabbing the CFDate code out of the Darwin library at
opensource.apple.com.
The datum is a 32-bit float, the epoch is midnight, Jan 1, 2001, and any
time it's serialized it's written out as an ASCII string. (I think it's
ASCII, but it might be unicode.)
-jcr