Home  |  Contents 

Microcontroller and PC projects
  Forum Index : Microcontroller and PC projects         Section
Subject Topic: A day of the year function. Post ReplyPost New Topic
<< Prev Page of 3
Author
Message << Prev Topic | Next Topic >>
lizby
Guru
Guru


Joined: 17 May 2016
Location: United States
Online Status: Offline
Posts: 399
Posted: 04 January 2019 at 1:22am | IP Logged Quote lizby

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.




Back to Top View lizby's Profile Search for other posts by lizby
 
barewires
Newbie
Newbie


Joined: 13 April 2015
Location: United Kingdom
Online Status: Offline
Posts: 4
Posted: 04 January 2019 at 6:46am | IP Logged Quote barewires

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!

Back to Top View barewires's Profile Search for other posts by barewires
 
lizby
Guru
Guru


Joined: 17 May 2016
Location: United States
Online Status: Offline
Posts: 399
Posted: 07 January 2019 at 12:49am | IP Logged Quote lizby

For what it's worth, Halloween also falls on a magic weekday, and for Americans, the Fourth of July. I kinda like this game.
Back to Top View lizby's Profile Search for other posts by lizby
 
lizby
Guru
Guru


Joined: 17 May 2016
Location: United States
Online Status: Offline
Posts: 399
Posted: 14 February 2019 at 11:41pm | IP Logged Quote lizby

Also, in non leap years, Valentine's Day.
Back to Top View lizby's Profile Search for other posts by lizby
 


If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Search the forums using Google.
<< Prev Page of 3
 
Post ReplyPost New Topic
Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Powered by Web Wiz Forums version 7.8
Copyright ©2001-2004 Web Wiz Guide

This page was generated in 0.1094 seconds.
Privacy Policy     Process times : 0, 0, 0, 0.11