From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11390f,be6b7e036aa9236c X-Google-Attributes: gid11390f,public X-Google-Thread: 10261c,68666e29d0425009 X-Google-Attributes: gid10261c,public X-Google-Thread: 1164ba,be6b7e036aa9236c X-Google-Attributes: gid1164ba,public X-Google-Thread: 1014db,be6b7e036aa9236c X-Google-Attributes: gid1014db,public X-Google-Thread: fa0ae,be6b7e036aa9236c X-Google-Attributes: gidfa0ae,public X-Google-Thread: 114809,68666e29d0425009 X-Google-Attributes: gid114809,public X-Google-Thread: 1094ba,be6b7e036aa9236c X-Google-Attributes: gid1094ba,public X-Google-Thread: 103376,be6b7e036aa9236c X-Google-Attributes: gid103376,public From: William Clodius Subject: Re: Results of my test: Re: Friday 13th, try it yourself Date: 1996/09/25 Message-ID: <3249C17C.794B@lanl.gov>#1/1 X-Deja-AN: 185354609 references: <52bmft$f3l@news1.halcyon.com> content-type: text/plain; charset=us-ascii organization: Los Alamos National Lab mime-version: 1.0 newsgroups: comp.lang.ada,comp.lang.apl,comp.lang.basic,comp.lang.c,comp.lang.fortran,comp.lang.perl.misc,comp.lang.pascal.misc,comp.lang.smalltalk x-mailer: Mozilla 2.0S (X11; I; IRIX 6.2 IP22) Date: 1996-09-25T00:00:00+00:00 List-Id: 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. > > @ yr = 0 > > while ( $yr < 400 ) > > @ yr ++ 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