News for hackers. Stuff that matters.
Re:Stellar collision confirms theoretical predictions about ... by yorwba on Tuesday October 17, 2017 @11:38PM (#15496726)
The formula (year - 2000) * 10000 + month * 100 + day can perfectly accommodate any future dates, until we change our calendar.
Re:Stellar collision confirms theoretical predictions about ... by wongarsu on Wednesday October 18, 2017 @10:04AM (#15499206)
But without zero-padding, it will sort wrong when using lexiographic order (as is common). 1180101 would sort before 171204 in many contexts, even though it should clearly come behind the latter.
Re:Stellar collision confirms theoretical predictions about ... by delbel on Wednesday October 18, 2017 @03:12AM (#15497445)
however if we invent time travel, and go back into the year 2000 we wouldn't be able to store any event data. furthermore, to get back, if that data field was used to store event data and the coordinates to get back to the current location of earth, could send you to a divide by zero coordinate and you wouldn't be able to get back. The solution is to just ban time travel to the year 2000 until a patch comes out