home bbs files messages ]

Just a sample of the Echomail archive

Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.

   BATPOWER      Batch Language Programming      216 messages   

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

   Message 83 of 216   
   Richard Webb to Paul Quinn   
   another convoluted brainteaser for the g   
   10 Feb 12 13:45:04   
   
   HI Paul,   
      
   On Fri 2012-Feb-10 14:58, Paul Quinn (3:640/384) wrote to Richard Webb:   
      
    RW> I've got a year to play with that one, but I think that'll   
    RW> do it!   
      
   PQ> I had in mind something simple, like...   
      
   PQ> -+- 8< ---   
   PQ> WHAT day   
   PQ> IF ERRORLEVEL 1 GOTO NEWMONTH   
      
   PQ> :NEWMONTH   
   PQ> :: Do your processing for a following new month...   
   PQ> --- 8< ---   
      
   Take care of all that with a process that runs once a day,   
   does some specifics for what day of the week, gets the day   
   of the month, does some other things accordingly.   
      
   When we roll over to a new month on the first we capture how many days it has   
   for other reasons anyway, so that capture   
   is used in this little history thing that runs 0000 utc   
   Sunday morning.   
      
   I use days in the month, again at the end of the month to   
   average how many vessels logged per day, posts in a couple   
   of echoes/newsgroups, etc.   
      
   Were I building such a system from scratch though I'd   
   probably look at something such as you showed there.   
      
   PQ> That way it doesn't matter what month, or whether the year is a leap   
   PQ> year or not, it just does a new week's worth of post-able notes over   
   PQ> the rollover period.   
      
   Still would because of the way I end up doing things around   
   here.   
      
   Regards,   
              Richard   
   ---   
    * Origin:  (1:116/901)   

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


(c) 1994,  bbs@darkrealms.ca