Unix Technical Forum

week numbers doesnt correspond with the official ones

This is a discussion on week numbers doesnt correspond with the official ones within the MySQL forums, part of the Database Server Software category; --> this query generates weeknumbers, and shows what the system think is the latest week: SELECT * , WEEK( datetime ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 11:28 AM
hygum
 
Posts: n/a
Default week numbers doesnt correspond with the official ones

this query generates weeknumbers, and shows what the system think is
the latest week:
SELECT * , WEEK( datetime )
FROM tigerens_kodetslyst .kodets_lyst_salg
WHERE id >0
ORDER BY `id` DESC

The week column is 38 for posts from today

But my danish mobile phone says its week 39, and thats what this
authorative webpage also says: http://timeanddate.com/calendar/?year=2007&country=2

the 27th of september 2007 is week 39.

Whats wrong?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 11:28 AM
Captain Paralytic
 
Posts: n/a
Default Re: week numbers doesnt correspond with the official ones

On 28 Sep, 16:04, hygum <thomashy...@gmail.com> wrote:
> this query generates weeknumbers, and shows what the system think is
> the latest week:
> SELECT * , WEEK( datetime )
> FROM tigerens_kodetslyst .kodets_lyst_salg
> WHERE id >0
> ORDER BY `id` DESC
>
> The week column is 38 for posts from today
>
> But my danish mobile phone says its week 39, and thats what this
> authorative webpage also says:http://timeanddate.com/calendar/?year=2007&country=2
>
> the 27th of september 2007 is week 39.
>
> Whats wrong?


Nothing's wrong.

You DID read the section in the manual on this before posting here
didn't you?

http://dev.mysql.com/doc/refman/5.0/...#function_week
http://dev.mysql.com/doc/refman/5.0/...ion_weekofyear

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 11:28 AM
hygum
 
Posts: n/a
Default Re: week numbers doesnt correspond with the official ones

On 28 Sep., 17:16, Captain Paralytic <paul_laut...@yahoo.com> wrote:
> On 28 Sep, 16:04,hygum<thomashy...@gmail.com> wrote:
>
> > this query generates weeknumbers, and shows what the system think is
> > the latest week:
> > SELECT * , WEEK( datetime )
> > FROM tigerens_kodetslyst .kodets_lyst_salg
> > WHERE id >0
> > ORDER BY `id` DESC

>
> > The week column is 38 for posts from today

>
> > But my danish mobile phone says its week 39, and thats what this
> > authorative webpage also says:http://timeanddate.com/calendar/?year=2007&country=2

>
> > the 27th of september 2007 is week 39.

>
> > Whats wrong?

>
> Nothing's wrong.
>
> You DID read the section in the manual on this before posting here
> didn't you?
>
> http://dev.mysql.com/doc/refman/5.0/...nctions.html#f...


oops no, thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:47 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com