I wrote a program to figure out what day of the week this landed on (assuming it is in fact October 2nd, 151441).
It's a Saturday.
Real downer on the start of the weekend.
1. Be civil
No trolling, bigotry or other insulting / annoying behaviour
2. No politics
This is non-politics community. For political memes please go to [email protected]
3. No recent reposts
Check for reposts when posting a meme, you can only repost after 1 month
4. No bots
No bots without the express approval of the mods or the admins
5. No Spam/Ads
No advertisements or spam. This is an instance rule and the only way to live.
I wrote a program to figure out what day of the week this landed on (assuming it is in fact October 2nd, 151441).
It's a Saturday.
Real downer on the start of the weekend.
Yep, my immediate thought was, how the hell would you know it works?
That program better be using an existing date library, because otherwise it's most definitely wrong.
public string GetDayOfWeek(DateTime date) => "saturday";
I also calculated it, his result checks out.
Don'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"
};
}
Best by ≠ Expiration date
It's the truth, and I'm tired pretending it's not.
It's just not in its best condition.
Another 720000 years before expiry.
1441 is most likely the time stamp sorry guys...
(Not sure if Canada follows US or internal date format)
Canadian here. We're not sure either.
Slashes mean whatever american abomination