I decided to try to make a calendar generator in OpenSCAD, this is what I came up with. Why make one? Just to see if I could since I was not able to find one. There are a couple of work arounds I had to do and borrowed the first day of month formula. It seems to work fine now.
What do you think? Use however you like if you want to.
The calendar is an interesting project. Most people will use 01 for January. Why the non-standard configuration for the months?
On Wednesday, July 28, 2021, 11:12:21 AM EDT, fractorr@gmail.com <fractorr@gmail.com> wrote:
I decided to try to make a calendar generator in OpenSCAD, this is what I came up with. Why make one? Just to see if I could since I was not able to find one. There are a couple of work arounds I had to do and borrowed the first day of month formula. It seems to work fine now.
What do you think? Use however you like if you want to.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
Not sure about the non standard config for the months, that was the way the formula was setup ( I borrowed the formula ) for the calculation to get the first day of the month for a given year. Seems odd to me as well but it seems to work and that was one of the odd things I had to make a work around for.
I have several ideas for the calendar already, mainly going to use it to export as a svg file for laser engraving.
I would guess that starting the year in March as #1 is because of February irregularities with leap year and non leap centuries.
On Wed, 2021-07-28 at 19:45 -0400, Bob Roos wrote:
I would guess that starting the year in March as #1 is because of
February irregularities with leap year and non leap centuries.
OK, but that didn't really pan out.... See attached.
I know it was a leap year because I missed beinf born on the 29th by
about 1.5 hrs.
Oops, I guess I forgot to add the leap year check in. Here is the updated version.
On Thu, 2021-07-29 at 14:02 +0000, fractorr@gmail.com wrote:
Oops, I guess I forgot to add the leap year check in. Here is the
updated version.
MUCH better!
Only one other thing, really a minor point, and I doubt anyone will try
to 3D-print one for September, 1752 or before. The earliest calendar
that will be correct is October, 1752
I probably wouldn't even bother doing it, but it's your choice.
Gives me the result: attached.
Should be (view with monospaced font. The 1st was on Tuesday):
September 1752
Su Mo Tu We Th Fr Sa
1 2 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Good to hear it works now. If someone wants to generate calendar’s going back to 1752 they are more than welcome to update the code. :)