pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ashok Agrawal <Ashok.Agrawal@Sun.COM>
To: pgsql-sql@postgresql.org
Subject: date subtraction
Date: Thu, 17 Mar 2005 10:32:53 -0800
Message-ID: <4239CD55.305@Sun.COM> (raw)

I need to do date calculation similar to oracle in postgres.

like sysdate - creation_date of the record which returns no
of days in oracle which you can convert to hours or second
by multiplying by 60 or 3600.

How do i achieve this in postgres.

Thanks
Ashok





view thread (2+ messages)  latest in thread

Message-ID: <4239CD55.305@Sun.COM>
Permalink:  ../4239CD55.305@Sun.COM/
Also on:    postgresql.org/message-id/4239CD55.305@Sun.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: Ashok.Agrawal@Sun.COM
  Subject: Re: date subtraction
  In-Reply-To: <4239CD55.305@Sun.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