Via Unix time (milliseconds from Jan 1st 1970), and you can just trim whatever precision you don’t need. People are born with rate of 2/second, so you don’t need last 2 digits. Current timestamp is 10 digits long for seconds, which is roughly 33 bits.
encoded how?
Via Unix time (milliseconds from Jan 1st 1970), and you can just trim whatever precision you don’t need. People are born with rate of 2/second, so you don’t need last 2 digits. Current timestamp is 10 digits long for seconds, which is roughly 33 bits.
You don’t encode the time directly. You sort all birth dates by time, and then encode the person’s rank in the sorted birth order.
You can’t just use timestamp because some people might be coincidentally born on the same millisecond.