pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pavel Stehule <pavel.stehule@gmail.com>
To: A. Kretschmer <andreas.kretschmer@schollglas.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: function to find difference between in days between two dates
Date: Thu, 14 Jun 2007 09:39:31 +0200
Message-ID: <162867790706140039j569676a3na70918a65e542f58@mail.gmail.com> (raw)
In-Reply-To: <20070614070246.GB16034@a-kretschmer.de>
References: <006101c7ae4c$ed7edbd0$170211ac@LIONKING.COM>
	<20070614070246.GB16034@a-kretschmer.de>

2007/6/14, A. Kretschmer <andreas.kretschmer@schollglas.com>:
> am  Thu, dem 14.06.2007, um 11:56:15 +0530 mailte Ashish Karalkar folgendes:
> > Hello all,
> >
> > Is there any function to find  differences in days between two dates?
>
> Yes, age().
>
>

there is difference

date - date --> integer
age(date::timestamp, date::timestamp) --> interval

regards

Pavel



view thread (8+ messages)  latest in thread

Message-ID: <162867790706140039j569676a3na70918a65e542f58@mail.gmail.com>
Permalink:  ../162867790706140039j569676a3na70918a65e542f58@mail.gmail.com/
Also on:    postgresql.org/message-id/162867790706140039j569676a3na70918a65e542f58@mail.gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: pavel.stehule@gmail.com, andreas.kretschmer@schollglas.com
  Subject: Re: function to find difference between in days between two dates
  In-Reply-To: <162867790706140039j569676a3na70918a65e542f58@mail.gmail.com>

* 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