pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Igal @ Lucee.org <igal@lucee.org>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: DOW is 0-based?
Date: Thu, 8 Feb 2018 12:24:54 -0800
Message-ID: <860b4e3a-b157-8a70-8a5b-deb4a61e1494@lucee.org> (raw)

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

Thanks,

Igal Sapir
Lucee Core Developer
Lucee.org <http://lucee.org/;

view thread (3+ messages)  latest in thread

Message-ID: <860b4e3a-b157-8a70-8a5b-deb4a61e1494@lucee.org>
Permalink:  ../860b4e3a-b157-8a70-8a5b-deb4a61e1494@lucee.org/
Also on:    postgresql.org/message-id/860b4e3a-b157-8a70-8a5b-deb4a61e1494@lucee.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: igal@lucee.org
  Subject: Re: DOW is 0-based?
  In-Reply-To: <860b4e3a-b157-8a70-8a5b-deb4a61e1494@lucee.org>
  References: <860b4e3a-b157-8a70-8a5b-deb4a61e1494@lucee.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox