this post was submitted on 22 Nov 2023
1064 points (96.1% liked)

Memes

47204 readers
2909 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 7 points 1 year ago* (last edited 1 year ago) (1 children)

How about 0xYYYMDD or 0xYYYYMDD if you need years after 4095 for some reason.

Today is 0x7e7b16

[–] takeda 2 points 1 year ago (1 children)

Congrats, you made it even less practical. Why not make it binary if that's the goal?

[–] [email protected] 2 points 1 year ago (1 children)

Nah. With binary, you can lose one hex digit AND the max year would be 2047 (11 bits year, 4 bits month, 5 bits day). What's not to like about hex anyway?