Thursday, January 3, 2008

Re: [BLUG] Time for a discussion on time

On Mon, Dec 31, 2007 at 04:25:25PM +0000, Mark Krenz wrote:
>
> I'm sorry but I have a problem with this:
>
> date +"date: %Y %m %d, Standard week number: %W of %Y, ISO week number %V of %G"
> date: 2007 12 31, Standard week number: 53 of 2007, ISO week number 01 of 2008
>
> IMHO, week numbers should only refer to the current year because
> that's really the only place they are useful, in dividing up the year.
> Obviously in human terms, this week is made up of two different years,
> but in computer terms, that is too confusing. If I run a command that
> returns 200801, that tells me that its already 2008, but its not.
>
> Thoughts?

The ISO week doesn't use months and has years that don't align completely
with the gregorian year. Look up "week dates" in relation to ISO 8601.

http://en.wikipedia.org/wiki/ISO_week_date

Excerpted:

The system does not need the concept of month and is not well connected with
the Gregorian system of months: some months January and December are divided
over two ISO years.


_______________________________________________
BLUG mailing list
BLUG@linuxfan.com
http://mailman.cs.indiana.edu/mailman/listinfo/blug