Re: Week to date function

From: "Hiltibidal, Rob" <Rob(dot)Hiltibidal(at)argushealth(dot)com>
To: "Ireneusz Pluta" <ipluta(at)wp(dot)pl>, "Jorge Godoy" <jgodoy(at)gmail(dot)com>
Cc: "Sergey Konoplev" <gray(dot)ru(at)gmail(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Week to date function
Date: 2010-03-27 21:31:18
Message-ID: 40FB2AE5907F9743A593A85015F157BF03FE1086@ARG-EXVS03.corp.argushealth.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Uhhhh only 52 calendar weeks in a year... I'm almost sure that is the
norm

-----Original Message-----
From: pgsql-sql-owner(at)postgresql(dot)org
[mailto:pgsql-sql-owner(at)postgresql(dot)org] On Behalf Of Ireneusz Pluta
Sent: Saturday, March 27, 2010 3:22 PM
To: Jorge Godoy
Cc: Sergey Konoplev; pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Week to date function

Jorge Godoy pisze:
> Are you sure?
>
> http://en.wikipedia.org/wiki/ISO_8601
snip
>
> As Jan 1st, 2010 happened on a Friday, it was on week 53 of 2009.
you are right, thanks for pointing that out.

I didn't check the opposite way like this:

select date_part('week', '2010-01-01'::date);
date_part
-----------
53

I need to recheck my code.

--
Sent via pgsql-sql mailing list (pgsql-sql(at)postgresql(dot)org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql

PRIVILEGED AND CONFIDENTIAL
This email transmission contains privileged and confidential information intended only for the use of the individual or entity named above. If the reader of the email is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any use, dissemination or copying of this email transmission is strictly prohibited by the sender. If you have received this transmission in error, please delete the email and immediately notify the sender via the email return address or mailto:postmaster(at)argushealth(dot)com(dot) Thank you.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jorge Godoy 2010-03-28 01:51:52 Re: Week to date function
Previous Message Ireneusz Pluta 2010-03-27 20:22:18 Re: Week to date function