82 points · by tobyjsullivan · 6y ago · 38 comments
- TIME
- DATE
- YEAR
- TIMESTAMP
- DATETIMEPython appears to only have date, time, datetime, and timedelta, which doesn't seem excessive when you consider that there are times when you only want date or time by themselves.
Yes, they actually have six decimal digits of precision. For tracking boxes on a warehouse conveyor belt.
Non of the top Internet dogs - Facebook, Twitter, Uber run MariaDB
https://www.theregister.co.uk/2013/09/12/google_mariadb_mysq...
And Wikipedia: https://blog.wikimedia.org/2013/04/22/wikipedia-adopts-maria...
Use uint64 as nanoseconds from epoch. Explicitly convert to/from UTC in your application code. Smear your leap seconds. This will last you until 2554, by which time I hope computers as we know are dead. Bonus: these make for decent strong-read-ordered internal UUIDs, given good retry logic.