Re: number of weeks

From: "Robert B(dot) Easter" <reaster(at)comptechnews(dot)com>
To: <hikmat(at)laurel(dot)4com(dot)net(dot)lb>, pgsql-general(at)postgresql(dot)org
Subject: Re: number of weeks
Date: 2000-07-04 08:01:18
Message-ID: 00070404043400.01354@comptechnews
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 03 Jul 2000, hikmat(at)laurel(dot)4com(dot)net(dot)lb wrote:
> is there a function that returns the number of weeks since the begining
> of the year or the number of days

-- Week number of the year
to_char(CURRENT_TIMESTAMP, 'WW');
-- Day number of the year
to_char(CURRENT_TIMESTAMP, 'DDD');

See the documentation at:
http://www.comptechnews.com/~reaster/postgres/functions2976.htm

--
Robert B. Easter

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mike Mascari 2000-07-04 08:06:29 Re: [GENERAL] Re: [HACKERS] proposed improvements to PostgreSQL license
Previous Message Philip Warner 2000-07-04 07:59:14 Re: [GENERAL] Re: [HACKERS] proposed improvements to PostgreSQL license