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

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