home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!aun.uninett.no!ugle.unit.no!alf.uib.no!sentral!yngvar
- From: yngvar@sentral.imr.no (Yngvar Foelling)
- Newsgroups: comp.lang.pascal
- Subject: Re: Week numbers
- Message-ID: <1992Dec12.161534.3620@alf.uib.no>
- Date: 12 Dec 92 16:15:34 GMT
- References: <Bz3nBs.3E3@cs.vu.nl>
- Sender: yngvar@sentral (Yngvar Foelling)
- Organization: Institute of Marine Research, Bergen, Norway.
- Lines: 32
-
- In article <Bz3nBs.3E3@cs.vu.nl>, 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.
-
- I don't know what the rules are for other countries, but remember that since
- some countries begin the week with Sunday, while others (like Norway) use
- Monday, there clearly are differences.
- |>
- |> Am I right in assuming that it's week #1 if Jan. 1 is either Monday, Tuesday,
- |> or Wednesday, and #52 otherwise?
-
- If your rules are the same as Norway (does the week begin with Monday in the
- Netherlands?), you're almost right. Week #1 is the first week that includes
- Thursday, so add Thursday to the list. Also, remember that since the year
- contains 365 or 366 days (i.e. one or two days *more* than 52 weeks), every
- 5th or 6th year contains 53 weeks.
-
- 1992 is such a year. It began with a Wednesday, so Jan 1 was in week #1. But
- Dec 30 is the 53rd Wednesday of the year. Jan 1 1993 falls on a Friday, so it
- will be in the last week of '92 (the *53rd*, not the 52nd).
-
- I find it very unlikely that the Dutch system would make 1993 begin with week
- 52 of 1992, if Jan 1 1992 was in week #1. The first Wednesday would be in week
- #1, the second in week #2 etc. How, then, can the last Wednesday of the year,
- the 53rd, be followed two days later by Friday, week 52?
-
- --
- ISO 8859-1: Yngvar Fxlling | Snail mail:
- ASCII: Yngvar Foelling | Tertnesveien 121
- | N-5084 Tertnes
- E-mail: yngvar@imr.no | Norway
-