Date Arithmetic in PL/pgSql

From: "Lane Van Ingen" <lvaningen(at)esncc(dot)com>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Date Arithmetic in PL/pgSql
Date: 2005-08-08 20:23:02
Message-ID: EKEMKEFLOMKDDLIALABIKEBOCBAA.lvaningen@esncc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I am using pgplsql on Windows 2003, PostgreSQL 8.0.

I am trying to do some simple date arithmetic. All I wanted to do is take a
timestamp
(example: 2005-08-08 16:15:30) without a timezone, and substract a computed
number
of minutes and seconds (such as 310 seconds) from it; keep running into
problems.

Have tried using age(), INTERVAL, and other different approaches. Does
anybody
have a clue how to make this work simply?

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message John DeSoi 2005-08-08 20:45:07 Re: Date Arithmetic in PL/pgSql
Previous Message Alloni Kramer 2005-08-08 18:46:42 SQL query question