discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Calendar

F
fractorr@gmail.com
Wed, Jul 28, 2021 3:11 PM

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.

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.
F
fred
Wed, Jul 28, 2021 4:20 PM

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

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
F
fractorr@gmail.com
Wed, Jul 28, 2021 4:50 PM

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.

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.
BR
Bob Roos
Wed, Jul 28, 2021 11:45 PM

I would guess that starting the year in March as #1 is because of February irregularities with leap year and non leap centuries.

I would guess that starting the year in March as #1 is because of February irregularities with leap year and non leap centuries.
L
larry
Thu, Jul 29, 2021 3:49 AM

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.

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.
F
fractorr@gmail.com
Thu, Jul 29, 2021 2:02 PM

Oops, I guess I forgot to add the leap year check in.  Here is the updated version.

Oops, I guess I forgot to add the leap year check in. Here is the updated version.
L
larry
Thu, Jul 29, 2021 5:32 PM

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

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
F
fractorr@gmail.com
Thu, Jul 29, 2021 10:25 PM

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. :)

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. :)