comp.lang.ada
 help / color / mirror / Atom feed
From: William Clodius <wclodius@lanl.gov>
Subject: Re: Results of my test: Re: Friday 13th, try it yourself
Date: 1996/09/25
Date: 1996-09-25T00:00:00+00:00	[thread overview]
Message-ID: <3249C17C.794B@lanl.gov> (raw)
In-Reply-To: Pine.SOL.3.91.960925162108.6568A-100000@serv1.jump.net


Lee Crites wrote:
> 
> For the most part, I've ignored this friday the 13th thread.  However,
> something someone said got my interest.  Basically the statement was that
> the same date 400 years later would fall on the same day.  I thought I'd
> check it out and see.  Unfortunately, it did not work on the dates I
> checked.
> 
<snip>
> @ yr = 0
> 
> while ( $yr < 400 )
>
>  @ yr ++

<snip>

If you want to compare the starting weekday of year 1 with with that 400
years later, I believe this should be

while ( $yr < 401 )

depending on your starting index yours gives either years 0, 1, 2, ...,
399 or years 1, 2, 3, ..., 400, while the above gives years 0, 1, 2,
..., 400 or years 1, 2, 3, ..., 401, so that you can compare year 1 with
401 or 0 with 400.

-- 

William B. Clodius		Phone: (505)-665-9370
Los Alamos National Laboratory	Email: wclodius@lanl.gov
Los Alamos, NM 87545




  reply	other threads:[~1996-09-25  0:00 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-13  0:00 language wars (results 13 September) last posting Roy Gardiner
1996-09-13  0:00 ` William Clodius
1996-09-13  0:00   ` Peter Seebach
1996-09-21  0:00     ` Robert Dewar
1996-09-21  0:00     ` Robert Dewar
1996-09-16  0:00   ` Robert Fahey
1996-09-18  0:00 ` James Giles
1996-09-18  0:00 ` Norman H. Cohen
1996-09-18  0:00 ` James Giles
1996-09-18  0:00 ` Andrew Gierth
1996-09-18  0:00 ` Luke Chao
1996-09-19  0:00 ` Andrew Gierth
1996-09-19  0:00 ` Daniel J. Long
1996-09-21  0:00   ` Ken Pizzini
1996-09-24  0:00     ` Art Schwarz
1996-09-26  0:00       ` Matthew D. Healy
1996-09-29  0:00         ` Randy MacDonald
1996-10-03  0:00           ` galina.kasminskaya
1996-10-03  0:00             ` Dave Tholen
1996-09-26  0:00       ` Ken Pizzini
1996-09-29  0:00         ` Paul Gilmartin
1996-09-21  0:00   ` Ken Pizzini
1996-09-19  0:00 ` Norman H. Cohen
1996-09-20  0:00 ` John Girash
1996-09-20  0:00   ` John Girash
1996-09-20  0:00 ` Friday 13th, try it yourself (was Language Wars..) Clinton Pierce
1996-09-21  0:00   ` Russell Mosemann
1996-09-21  0:00   ` Russell Mosemann
1996-09-25  0:00     ` Ken Pizzini
1996-09-25  0:00       ` Results of my test: Re: Friday 13th, try it yourself Lee Crites
1996-09-25  0:00         ` William Clodius [this message]
1996-09-27  0:00         ` Dik T. Winter
     [not found]           ` <52qpqt$1b3l@ilx018.iil.intel.com>
1996-10-02  0:00             ` Ken Pizzini
1996-10-02  0:00             ` Dik T. Winter
1996-09-26  0:00       ` Dr John Stockton
1996-09-26  0:00         ` Lee Crites
1996-09-26  0:00           ` John Winters
1996-09-26  0:00           ` Daan Sandee
1996-09-26  0:00             ` Jeff Drummond
1996-09-30  0:00               ` Ray Dunn
1996-09-26  0:00           ` Adam Beneschan
1996-09-27  0:00             ` Glen Clark
1996-09-27  0:00           ` CHI Research, Inc. 
1996-09-27  0:00             ` Lee Crites
1996-09-28  0:00               ` John Winters
1996-09-30  0:00               ` Adam Beneschan
1996-10-01  0:00             ` Mike McCarty
1996-09-26  0:00         ` Dr John Stockton
     [not found]         ` <199609302101.JAA04610@kauri.vuw.ac.nz>
1996-09-30  0:00           ` Lee Crites
1996-09-25  0:00     ` Friday 13th, try it yourself (was Language Wars..) Barrie Walker
1996-09-26  0:00       ` Jim Shapiro
1996-09-23  0:00   ` Matthew D. Healy
1996-09-23  0:00     ` Dik T. Winter
1996-09-25  0:00     ` Paul Gilmartin
1996-09-22  0:00 ` Dr John Stockton
1996-09-23  0:00 ` Randy MacDonald
1996-09-23  0:00   ` Dik T. Winter
1996-09-25  0:00   ` John Harper
1996-09-25  0:00     ` jupiter
1996-09-23  0:00 ` Dr John Stockton
1996-09-24  0:00 ` language wars (results 13 September) last posting Andrew Gierth
1996-09-24  0:00   ` Art Schwarz
  -- strict thread matches above, loose matches on Subject: below --
1996-10-03  0:00 Results of my test: Re: Friday 13th, try it yourself James Gillespie
1996-10-03  0:00 ` Daan Sandee
1996-10-03  0:00 ` Dr John Stockton
1996-10-03  0:00 ` Paul Skoczylas
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox