From: Andrew Mather (Powered By Linux) <mathera@woody.agvic.gov.au>
To: pgsql-novice@postgreSQL.org
To: pgsql-sql@postgreSQL.org
Subject: (Fwd) Hi and some advice on Dates
Date: Sun, 8 Nov 1998 15:41:49 +0000
Message-ID: <104E3CB13D06@woody.agvic.gov.au> (raw)
G'day All,
I am pretty new to postgres and am using it as a backend for DB's
accessed via the web and Perl DBI. All this works really well and I
have a few db's up and running on our Intranet at work, where they're
quite heavily used.
My current project requires me to do some date calculations and I'm
stumped !
Could anyone help with the following: (I have not fixed data type yet,
I will be guided by any info I can get)
How to query a table and look for any records where
the value in a date field is greater than (say) 10 days ago
Calculate the difference between two times on the same day. (I have
experimented with age() and it sort of does wht I want..is there any
other way ?)
I've searched the archives without success and the doc's don't give
much away as far as this type of thing goes.
Thanks in anticipation.
Andrew
--------------------------------------------------------
Andrew Mather: System Administrator, VIAS
mathera@woody.agvic.gov.au / amsm@deakin.edu.au
http://www.deakin.edu.au/~amsm/index.html
Ph: 03 92174342 (BH), Mob 0413 009 761
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Linux: it's not just for breakfast anymore.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-
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: mathera@woody.agvic.gov.au, pgsql-novice@postgreSQL.org
Subject: Re: (Fwd) Hi and some advice on Dates
In-Reply-To: <104E3CB13D06@woody.agvic.gov.au>
References: <104E3CB13D06@woody.agvic.gov.au>
* 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