home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 72 
 Richard Webb to mark lewis 
 another convoluted brainteaser for the g 
 08 Feb 12 13:54:06 
 
HI Mark,

On Tue 2012-Feb-07 22:34, mark lewis (1:3634/12) wrote to Richard Webb:

 RW> The whoel thing keys for number of days in a given month off a
 RW> little text file which contains that info which my system
 RW> creates at the beginning of each month.  Of course I have to edit
 RW> it for leap years, since by default it assumes February has 28
 RW> days.  

ml> you know that you can automatically handle this with a small bit of
ml> math, right? i'd have to look at some code to make sure i state it
ml> correctly but leap years can be determined by current year div 4 but
ml> there's also a 400 involved... this is why i need to take a sec
ml> later on and look at the real formula... then you can have an array
ml> with all of the month days count and automatically adjust FEB when
ml> it has 29 days ;)

YEp, knew about the divisible by four part, just hadn't
played with that in the code that runs Feb 1 yet.  Would
like to see that other formula when you find it.  I'm sure
we could plug it in.  TImo's batch calculator does some
interesting things.

Think I'd heard of the other one too, but was thinking about the divisible by
4 bit, just hadn't implemented that one
.

Regards,
           Richard
---
 * Origin:  (1:116/901)

<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca