day of week

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: pgsql-hackers <pgsql-hackers(at)postgreSQL(dot)org>
Subject: day of week
Date: 2000-06-05 20:52:51
Message-ID: Pine.LNX.3.96.1000605224258.67A-100000@ara.zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

We have for same questions different answers now:

(DAY OF WEEK)

test=# select date_part('dow', now());
date_part
-----------
1
(1 row)

test=# select to_char(now(), 'D');
to_char
---------
2
(1 row)

For to_char() I use POSIX definition of 'tm' where week start on Sunday.

Is it right? (Exuse me, I see archive, but without some effect...).

Or we will support both styles?

Karel

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Don Baccus 2000-06-05 21:03:46 Re: day of week
Previous Message Lamar Owen 2000-06-05 20:51:59 Re: [HACKERS] [v7.0.2] Very small cleanup release ...