which day of the week - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Programs (https://qb64phoenix.com/forum/forumdisplay.php?fid=7) +---- Thread: which day of the week (/showthread.php?tid=3334) |
which day of the week - macalwen - 12-30-2024 This program is used to calculate the day of the week for any day starting from 1 AD. Code: (Select All)
Code: (Select All)
RE: which day of the week - SpriggsySpriggs - 12-30-2024 Aw man. This reminds me of some code I wrote a long time ago. I think I lost it, though. I had good code for doing that sort of thing. Nice job. RE: which day of the week - bplus - 12-30-2024 Reminds me of one of the essential parts of making a calendar. Anyone want a free calendar for next year? (minus the paper) RE: which day of the week - eoredson - 01-02-2025 I can squash that code into 2 lines: Code: (Select All) Rem determine day of week. RE: which day of the week - Pete - 01-02-2025 (01-02-2025, 02:15 AM)eoredson Wrote: I can squash that code into 2 lines:We'z up ta squishing things? I love'z squishing things! Stompity, stomp, stomp, stomp....Take that, varmint! Code: (Select All)
- Sam RE: which day of the week - bplus - 01-02-2025 I don't think Eric and Pete are accounting for the change in 1582 as macalwen has. I tried to find the first day of Jan 1, 0 AD and Pete says Sunday because Eriks say Sunday I bet and when I disable macalwen's check for years less than 1, he gives me Friday. That is the way to start off an era, going into a weekend! RE: which day of the week - bplus - 01-02-2025 Columbus discovered America, at least the Bahamas, Oct 12, 1492. What day was that? Pete and probably Eirk's say Wedesday, Macalwen says Friday again. Bplus says best to diccover new lands on Fridays. BTW Google's AI says it was on a Thursday! Google must of averaged macalwen's and Pete's answers. RE: which day of the week - SMcNeill - 01-02-2025 (01-02-2025, 05:55 AM)bplus Wrote: Columbus discovered America, at least the Bahamas, Oct 12, 1492. And yet, all the calendars say it was a Monday.. https://jleic-docdb.jlab.org/cgi-bin/public/ShowCalendar?year=1942&month=10 Ahh... Here's the reason why. https://www.dayoftheweek.org/?m=October&d=12&y=1492&go=Go Quote:A note to students, teachers, scholars and anyone else passionate about this topic. As stated in the front page, this website is using the Gregorian calendar as the basis for all “day of the week” computation whether or not the Gregorian calendar is relevant for the date in question (October 12, 1492). Educators should point out the primary reason why Pope Gregory XIII introduced a new calendar system in October 1582. That is, to make the computation for the annual date of Easter more accurate since it is the foundation of the Christian faith. RE: which day of the week - eoredson - 01-02-2025 (01-02-2025, 05:55 AM)bplus Wrote: Columbus discovered America, at least the Bahamas, Oct 12, 1492.Sure, then all you have to do is modify it to: Code: (Select All) Rem determine day of week. RE: which day of the week - bplus - 01-02-2025 Erik did you check that? |