pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Valerie Goodman <VGoodman@aih.co.uk>
To: pgsql-sql@postgresql.org
Subject: Subtraction of Dates
Date: Thu, 27 Jun 2002 14:21:36 +0100
Message-ID: <NEBBIJFAKLBIBECFEAGOCEEHCPAA.VGoodman@aih.co.uk> (raw)


When I want an integer for a number of days between two dates, direct
subtraction of two dates returns an integer.

However, age function returns an interval.

Which is the correct method to use and if age is the correct method, how do
I convert that to the number of days?







view thread (2+ messages)  latest in thread

Message-ID: <NEBBIJFAKLBIBECFEAGOCEEHCPAA.VGoodman@aih.co.uk>
Permalink:  ../NEBBIJFAKLBIBECFEAGOCEEHCPAA.VGoodman@aih.co.uk/
Also on:    postgresql.org/message-id/NEBBIJFAKLBIBECFEAGOCEEHCPAA.VGoodman@aih.co.uk

 · 

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-sql@postgresql.org
  Cc: VGoodman@aih.co.uk
  Subject: Re: Subtraction of Dates
  In-Reply-To: <NEBBIJFAKLBIBECFEAGOCEEHCPAA.VGoodman@aih.co.uk>
  References: <NEBBIJFAKLBIBECFEAGOCEEHCPAA.VGoodman@aih.co.uk>

* 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