Skip to content

Comment on Today’s an international prime dayparent

Comments

You don't, though.

You get the 2nd shortest duration first (tens of days) then the shortest (days) then the fourth shortest (tens of months) then the third shortest (months) etc

With the ISO standard every character symbolises a larger duration than the one that follows, so to get a strictly increasing order you have to reverse the string entirely - today would be 92-11-3102

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.