home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!psgrain!qiclab!leonard
- From: leonard@qiclab.scn.rain.com (Leonard Erickson)
- Newsgroups: comp.lang.pascal
- Subject: Re: Week numbers
- Message-ID: <1992Dec15.000536.15663@qiclab.scn.rain.com>
- Date: 15 Dec 92 00:05:36 GMT
- Article-I.D.: qiclab.1992Dec15.000536.15663
- References: <Bz3nBs.3E3@cs.vu.nl>
- Reply-To: Leonard.Erickson@f51.n105.z1.fidonet.org
- Organization: SCN Research/Qic Laboratories of Tigard, Oregon.
- Lines: 32
-
- sbakker@cs.vu.nl (Bakker S) writes:
-
- >Can anyone tell me how to number weeks, i.e. does Jan. 1 fall into week #1 or
- >week #52? For example, in 1992 Jan. 1 fell into week #1, but in 1993 it will
- >fall into week #52 of '92.
-
- >Am I right in assuming that it's week #1 if Jan. 1 is either Monday, Tuesday,
- >or Wednesday, and #52 otherwise?
-
- The answer is "it depends". What are you using these week numbers *for*?
-
- I know of several companies that schedule stuff according to "week numbers".
- And the numbers are assigned *arbitrarily*. They will number the week
- containing Jan 1 as week 1, Week 2, Week 52, (or 53 or even *54* one year!)
- depending on things like "do we need to have this week's output counted
- as being in 92 or in 93?"
-
- I wrote some software that had to deal with this stuff. And every december
- I had to pound on someone to tell me *when* week 1 would start. And about
- half the time, I'd have to go back and correct a bunch of data because
- they'd changed their minds *after* telling me.
-
- As I say, there's no standard. And since the years is 52 weeks and one
- day long (two days in leap years), you need to be ready to deal with week
- 53 occasionally. I haven't sat down with a calendar to check, so I would
- not even rule out week *54* as a legitimate possibility.
-
- --
- Leonard Erickson leonard@qiclab.scn.rain.com
- CIS: [70465,203] 70465.203@compuserve.com
- FIDO: 1:105/51 Leonard.Erickson@f51.n105.z1.fidonet.org
- (The CIS & Fido addresses are preferred)
-