home bbs chatroom files | messages | login ]

      FBATPO30             BATPOWER             216 messages      

[ list messages | list forums | previous | next ]

  Msg # 208 of 216 on FBATPO30, Wednesday 2-07-12, 10:45  
  From: MARK LEWIS  
  To: RICHARD WEBB  
  Subj: another convoluted brainteaser for the g  
   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.  
    
  you know that you can automatically handle this with a small bit of math,  
  right? i'd have to look at some code to make sure i state it correctly but  
  leap years can be determined by current year div 4 but there's also a 400  
  involved... this is why i need to take a sec later on and look at the real  
  formula... then you can have an array with all of the month days count and  
  automatically adjust FEB when it has 29 days ;)  
    
  )\\/(ark  
    
   * Origin: (1:3634/12)  

[ list messages | list forums | previous | next ]

352,369 visits
(c) 1994,  bbs@darkrealms.ca