home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!swrinde!news.dell.com!texsun!exucom.exu.ericsson.se!pc254101.exu.ericsson.se!exuptr
- From: exuptr@exu.ericsson.se (Patrick Taylor)
- Newsgroups: comp.lang.pascal
- Subject: Re: Week numbers
- Message-ID: <exuptr.430.0@exu.ericsson.se>
- Date: 15 Dec 92 19:55:32 GMT
- References: <Bz3nBs.3E3@cs.vu.nl> <1992Dec15.000536.15663@qiclab.scn.rain.com>
- Sender: news@exu.ericsson.se
- Organization: Ericsson Network Systems, Inc.
- Lines: 52
- Nntp-Posting-Host: pc254101.exu.ericsson.se
- X-Disclaimer: This article was posted by a user at Ericsson.
- Any opinions expressed are strictly those of the
- user and not necessarily those of Ericsson.
-
- In article <1992Dec15.000536.15663@qiclab.scn.rain.com> leonard@qiclab.scn.rain.com (Leonard Erickson) 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.
-
- I assume you are saying that week 54 would arise when a leap-year
- begins with Sunday as the end of week 1, for example, and week 2 is
- Monday Jan 2. Then week 53 will end on Dec 30?
-
- As far as a standard, the Swedes have been numbering their weeks for a long
- time.
-
- From studying their calendars, it looks like they do this:
-
- 1. Weeks start on Monday, always.
-
- 2. If a week containing Jan 1 has 4 or more days in the new
- year, then it's counted as week one. Otherwise, it is week 52
- or 53, and the following week is week 1.
-
- 3. In the years I looked at, there were no week 54's.
-
- ----------------------!!! H A P P Y H O L I D A Y S !!!-------------------
- ObQuotes:
- "Igornance and prejudice, confident their ways are best..."
- "Quick to judge, quick to anger, slow to understand..."
-
- - Patrick Taylor, Ericsson Network Systems
- exuptr@exu.ericsson.se "Don't let the .se fool you"
- Visit the SOUNDING BOARD BBS 214-596-2915, a Wildcat! BBS
-