PugJesus@lemmy.world to memes@lemmy.worldEnglish · 4 months agoThe last hopelemmy.worldimagemessage-square31fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageThe last hopelemmy.worldPugJesus@lemmy.world to memes@lemmy.worldEnglish · 4 months agomessage-square31fedilink
minus-squareal4s@lemmy.worldlinkfedilinkarrow-up0·4 months agoDon’t be ridiculous, that would never pass QA. But this one will. Joy for years to come: public string GetDayOfWeek(DateTime date) { return ((date - new DateTime(1970, 1, 1)).Milliseconds / 86400000) % 7 switch { 0 => "Thursday", 1 => "Friday", 2 => "Saturday", 3 => "Sunday", 4 => "Monday" }; }
Don’t be ridiculous, that would never pass QA.
But this one will. Joy for years to come: