pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: W.H. Dekker <wybo@servaly.hobby.nl>
To: mathera@woody.agvic.gov.au
Cc: pgsql-novice@postgreSQL.org
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [NOVICE] (Fwd) Hi and some advice on Dates
Date: Sun, 8 Nov 1998 11:36:47 +0100
Message-ID: <199811081036.LAA00206@servaly.hobby.nl> (raw)
In-Reply-To: <104E3CB13D06@woody.agvic.gov.au>

Andrew Mather wrote: 

> 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 ?)

Use Perl as a database interface and have a look at de Perl module
Date::Manip. It has all you need, and more.

-- 
Best regards,
Wybo
===================Servalys Analytical Chemistry Services=================
Wybo H. Dekker        | Deilsedijk 60                 | tel +31-345-652164
wybo@servaly.hobby.nl | 4158 CH Deil, The Netherlands | fax +31-345-652383



view thread (4+ messages)  latest in thread

Message-ID: <199811081036.LAA00206@servaly.hobby.nl>
Permalink:  ../199811081036.LAA00206@servaly.hobby.nl/
Also on:    postgresql.org/message-id/199811081036.LAA00206@servaly.hobby.nl

 · 

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: wybo@servaly.hobby.nl, mathera@woody.agvic.gov.au, pgsql-novice@postgreSQL.org
  Subject: Re: [NOVICE] (Fwd) Hi and some advice on Dates
  In-Reply-To: <199811081036.LAA00206@servaly.hobby.nl>
  References: <104E3CB13D06@woody.agvic.gov.au> <199811081036.LAA00206@servaly.hobby.nl>

* 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