Kevin:

Try looking in Google for "ISO 8601 week".  It may help answer some of your
questions.

Bill

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Kevin King
> Sent: Thursday, October 27, 2005 12:38 PM
> To: [email protected]
> Subject: RE: [U2] Week of the year (UV)
> 
> Barry is right, the definition of "year" (beit "fiscal", 
> "calendar" or some variant thereof) is one of several 
> important facets of the problem  that must be defined before 
> formulating a solution.  For some companies, January 1st is 
> actually part of the last (52nd or 53rd) calendar week of the 
> previous year, and the actual calendar week 1 could start on 
> the Monday, such as this year with 1/3/2005.
> 
> Some questions to consider: 
> 
> * What day is considered the first day of the year?  (Not 
> always January 1, particularly if talking a fiscal calendar.)
> 
> * What day is considered the first day of a given week? Wall 
> calendars may show Sunday as the first day of the week, but 
> for each unique company it could be Monday (first working 
> day), Friday (last working day), Saturday (last working day), 
> or really any other day.
> 
> * When in a 53 week year, is the 53rd week really considered 
> a 53rd week, or should it be an extended period on the 52nd 
> week?  Keep in mind that it may be possible to have a 53 week 
> year without a leap year based on the answers to the previous 
> questions and depending on what weekday the first of the year 
> shows up on.
> 
> These are just some considerations I've faced when writing 
> code for this week number calculation.  Your individual 
> results may vary.
> 
> -Kevin
> [EMAIL PROTECTED]
> http://www.PrecisOnline.com
> -------
> u2-users mailing list
> [email protected]
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to