News for hackers. Stuff that matters.
Re:Microsoft Exchange stops passing mail due to bug on 1/1/22 by oefnak on Saturday January 01, 2022 @10:10AM (#29758955)
But "1000"<"999" in Python.
Re:Microsoft Exchange stops passing mail due to bug on 1/1/22 by laumars on Saturday January 01, 2022 @10:18AM (#29759062)
String comparison works as long as you order your date time by significance and zero pad all values, which they were doing with their date stamp anyway.

Plus if they weren’t then even numerical comparisons would fail eg 1012021 (Oct/1/2021) < 5102020 (May/10/2020) so you argument is moot.

Re:Microsoft Exchange stops passing mail due to bug on 1/1/22 by jpambrun on Saturday January 01, 2022 @10:17AM (#29759044)
This is going to be a problem in about 8,000 years tho.
Re:Microsoft Exchange stops passing mail due to bug on 1/1/22 by 6c696e7578 on Saturday January 01, 2022 @11:26AM (#29759890)
Wouldn't it be done more like this though?

  "%04d%02d%02d" % (999,1,1)
Re:Microsoft Exchange stops passing mail due to bug on 1/1/22 by thomasfedb on Saturday January 01, 2022 @10:15AM (#29759021)
But the format and length for these numerical strings is fixed.