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

  1. Path: sparky!uunet!usc!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!aun.uninett.no!ugle.unit.no!alf.uib.no!sentral!yngvar
  2. From: yngvar@sentral.imr.no (Yngvar Foelling)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: Week numbers
  5. Message-ID: <1992Dec12.161534.3620@alf.uib.no>
  6. Date: 12 Dec 92 16:15:34 GMT
  7. References: <Bz3nBs.3E3@cs.vu.nl>
  8. Sender: yngvar@sentral (Yngvar Foelling)
  9. Organization: Institute of Marine Research, Bergen, Norway.
  10. Lines: 32
  11.  
  12. In article <Bz3nBs.3E3@cs.vu.nl>, sbakker@cs.vu.nl (Bakker S) writes:
  13. |> Can anyone tell me how to number weeks, i.e. does Jan. 1 fall into week #1 or
  14. |> week #52? For example, in 1992 Jan. 1 fell into week #1, but in 1993 it will
  15. |> fall into week #52 of '92.
  16.  
  17. I don't know what the rules are for other countries, but remember that since
  18. some countries begin the week with Sunday, while others (like Norway) use
  19. Monday, there clearly are differences.
  20. |> 
  21. |> Am I right in assuming that it's week #1 if Jan. 1 is either Monday, Tuesday,
  22. |> or Wednesday, and #52 otherwise?
  23.  
  24. If your rules are the same as Norway (does the week begin with Monday in the
  25. Netherlands?), you're almost right.  Week #1 is the first week that includes
  26. Thursday, so add Thursday to the list.  Also, remember that since the year
  27. contains 365 or 366 days (i.e. one or two days *more* than 52 weeks), every
  28. 5th or 6th year contains 53 weeks.
  29.  
  30. 1992 is such a year.  It began with a Wednesday, so Jan 1 was in week #1.  But
  31. Dec 30 is the 53rd Wednesday of the year.  Jan 1 1993 falls on a Friday, so it
  32. will be in the last week of '92 (the *53rd*, not the 52nd).
  33.  
  34. I find it very unlikely that the Dutch system would make 1993 begin with week
  35. 52 of 1992, if Jan 1 1992 was in week #1.  The first Wednesday would be in week
  36. #1, the second in week #2 etc.  How, then, can the last Wednesday of the year,
  37. the 53rd, be followed two days later by Friday, week 52?
  38.  
  39. -- 
  40. ISO 8859-1: Yngvar Fxlling  | Snail mail:
  41. ASCII:      Yngvar Foelling | Tertnesveien 121
  42.                             | N-5084 Tertnes
  43. E-mail:     yngvar@imr.no   | Norway
  44.