![]() |
Forum Index : Microcontroller and PC projects : A day of the year function.
![]() ![]() |
|||||
Author | Message | ||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3378 |
Very interesting. If I learned it and used it, I could further dismay my wife with my geekiness. Thursday. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1993 |
Doesn't work for 2-2, it is a Saturday this year. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
barewires Newbie ![]() Joined: 13/04/2015 Location: United KingdomPosts: 32 |
Looks like my old memory needs refreshing, February is covered by 'the last day of February, so 2-2 needs to be forgotten. "I work at the 7-11 from 9-5. Reverse 11-7 and 5-9. Remember 4-4, 6-6, 8-8, 10-10 and 12-12. Last day of February." Thanks |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3378 |
No 2-2. Dang. Now I've got to forget part of what I've almost learned. I asked my wife the date of her son's birthday. She said 6-7. I said that's a Friday, and explained to her how I knew--and then where I got the trick from. She said she didn't need any further convincing regarding my geekiness. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3378 |
DOW addition for March for the "Perpetual Calendar in my head". "I work at the 7-11 from 9-5. Reverse 11-7 and 5-9. Remember 4-4, 6-6, 8-8, 10-10 and 12-12. Last day of February. Pi Day." As you said, barewires, March is easy when you know that the last day of February is the magic day of the week for the year, but Pi Day, 3-14, is always going to be the same day of the week as the last day of February. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
barewires Newbie ![]() Joined: 13/04/2015 Location: United KingdomPosts: 32 |
lizby, that is very useful. I have been playing with: https://en.wikipedia.org/wiki/Zeller's_congruence for 30 years, and Wikipedia references just pointed me to John Conway's (author of The Game of Life) Doomsday. If I can't soon find the MMBASIC code then I will rewrite it on my new Armmite H7 using the following phrases. "I work at the 7-11 from 9-5. Reverse 11-7 and 5-9. Remember 4-4, 6-6, 8-8, 10-10 and 12-12. Last day of February. Pi Day. January 3 (common years), January 4 (leap years)" These dates were all Wednesday in 2018. Add a day for next year or two days if coming into a leap year. 2018 Wed 2019 Thu 2020 Sat 2021 Sun 2022 Mon 2023 Tue 2024 Thu Enjoy and have a Happy New Year and remember the magic day for 2019 is Thursday! |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3378 |
For what it's worth, Halloween also falls on a magic weekday, and for Americans, the Fourth of July. I kinda like this game. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3378 |
Also, in non leap years, Valentine's Day. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |