| From: | Igor Korot <ikorot01(at)gmail(dot)com> |
|---|---|
| To: | "Igal (at) Lucee(dot)org" <igal(at)lucee(dot)org> |
| Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: DOW is 0-based? |
| Date: | 2018-02-08 20:57:37 |
| Message-ID: | CA+FnnTwOSPyAK6vSopLFEhYx-gx0HgfP5UUNJ5+1RU9-FxYnyw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hi,
On Thu, Feb 8, 2018 at 2:24 PM, Igal @ Lucee.org <igal(at)lucee(dot)org> wrote:
> Is there a rational reason why Day of the Week is 0-based, i.e. Sunday (0)
> to Saturday (6) instead of the more intuitive Sunday (1) to Saturday (7)?
>
> SELECT date_part('dow', current_date);
>
> https://www.postgresql.org/docs/current/static/functions-datetime.html
https://en.wikipedia.org/wiki/Determination_of_the_day_of_the_week
Thank you.
>
> Thanks,
>
> Igal Sapir
> Lucee Core Developer
> Lucee.org
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Steven Hirsch | 2018-02-08 21:22:39 | Re: Odd behavior with 'currval' |
| Previous Message | Igal @ Lucee.org | 2018-02-08 20:24:54 | DOW is 0-based? |