home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / pascal / 7495 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  3.0 KB

  1. 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
  2. From: exuptr@exu.ericsson.se (Patrick Taylor)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: Week numbers
  5. Message-ID: <exuptr.430.0@exu.ericsson.se>
  6. Date: 15 Dec 92 19:55:32 GMT
  7. References: <Bz3nBs.3E3@cs.vu.nl> <1992Dec15.000536.15663@qiclab.scn.rain.com>
  8. Sender: news@exu.ericsson.se
  9. Organization: Ericsson Network Systems, Inc.
  10. Lines: 52
  11. Nntp-Posting-Host: pc254101.exu.ericsson.se
  12. X-Disclaimer: This article was posted by a user at Ericsson.
  13.               Any opinions expressed are strictly those of the
  14.               user and not necessarily those of Ericsson.
  15.  
  16. In article <1992Dec15.000536.15663@qiclab.scn.rain.com> leonard@qiclab.scn.rain.com (Leonard Erickson) writes:
  17.  
  18. >>Can anyone tell me how to number weeks, i.e. does Jan. 1 fall into week #1 or
  19. >>week #52? For example, in 1992 Jan. 1 fell into week #1, but in 1993 it will
  20. >>fall into week #52 of '92.
  21.  
  22. >>Am I right in assuming that it's week #1 if Jan. 1 is either Monday, Tuesday,
  23. >>or Wednesday, and #52 otherwise?
  24.  
  25. >The answer is "it depends". What are you using these week numbers *for*?
  26.  
  27. >I know of several companies that schedule stuff according to "week numbers".
  28. >And the numbers are assigned *arbitrarily*. They will number the week 
  29. >containing Jan 1 as week 1, Week 2, Week 52, (or 53 or even *54* one year!)
  30. >depending on things like "do we need to have this week's output counted 
  31. >as being in 92 or in 93?" 
  32.  
  33. >I wrote some software that had to deal with this stuff. And every december
  34. >I had to pound on someone to tell me *when* week 1 would start. And about
  35. >half the time, I'd have to go back and correct a bunch of data because
  36. >they'd changed their minds *after* telling me.
  37.  
  38. >As I say, there's no standard. And since the years is 52 weeks and one
  39. >day long (two days in leap years), you need to be ready to deal with week
  40. >53 occasionally. I haven't sat down with a calendar to check, so I would
  41. >not even rule out week *54* as a legitimate possibility. 
  42.  
  43. I assume you are saying that week 54 would arise when a leap-year
  44. begins with Sunday as the end of week 1, for example, and week 2 is
  45. Monday Jan 2.  Then week 53 will end on Dec 30?
  46.  
  47. As far as a standard, the Swedes have been numbering their weeks for a long 
  48. time.
  49.  
  50. From studying their calendars, it looks like they do this:
  51.  
  52.     1.  Weeks start on Monday, always.
  53.  
  54.     2.  If a week containing Jan 1 has 4 or more days in the new
  55.         year, then it's counted as week one.  Otherwise, it is week 52
  56.         or 53, and the following week is week 1.
  57.  
  58.     3.  In the years I looked at, there were no week 54's.
  59.  
  60.  ----------------------!!! H A P P Y   H O L I D A Y S !!!-------------------
  61.  ObQuotes:
  62.  "Igornance and prejudice, confident their ways are best..."
  63.  "Quick to judge, quick to anger, slow to understand..."
  64.  
  65.   - Patrick Taylor, Ericsson Network Systems
  66.     exuptr@exu.ericsson.se                    "Don't let the .se fool you"
  67.     Visit the SOUNDING BOARD BBS 214-596-2915, a Wildcat! BBS
  68.