pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roberto Mello <rmello@cc.usu.edu>
To: Richard Whittaker <richard@connections.yk.ca>
Cc: pgsql-php@postgresql.org
Subject: Re: Unixtime function?...
Date: Wed, 2 May 2001 14:44:04 -0600
Message-ID: <20010502144404.A20145@cc.usu.edu> (raw)
In-Reply-To: <5.0.2.1.0.20010502131806.03c914b0@mekong.connections.yk.ca>
References: <5.0.2.1.0.20010502084535.0413d790@mekong.connections.yk.ca>
	<5.0.2.1.0.20010502084535.0413d790@mekong.connections.yk.ca>
	<20010502141107.A19986@cc.usu.edu>
	<5.0.2.1.0.20010502131806.03c914b0@mekong.connections.yk.ca>

On Wed, May 02, 2001 at 01:20:24PM -0700, Richard Whittaker wrote:
> 
> Allright, so given that, how do I get the number of seconds between two 
> arbitrary date/time values or even just time values, and pass that back to 
> PHP?...

	You're not going to even try to find this information in the docs????

http://postgresql.readysetnet.com/users-lounge/docs/7.1/user/functions-datetime.html

hgcm-test=# select extract(epoch from timestamp 'now()');
 date_part
-----------
 988836181

	-Roberto

-- 
+----| http://fslc.usu.edu USU Free Software & GNU/Linux Club |------+
  Roberto Mello - Computer Science, USU - http://www.brasileiro.net 
       http://www.sdl.usu.edu - Space Dynamics Lab, Developer    
DOS = Damned Old Software



view thread (7+ messages)  latest in thread

Message-ID: <20010502144404.A20145@cc.usu.edu>
Permalink:  ../20010502144404.A20145@cc.usu.edu/
Also on:    postgresql.org/message-id/20010502144404.A20145@cc.usu.edu

 · 

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-php@postgresql.org
  Cc: rmello@cc.usu.edu, richard@connections.yk.ca
  Subject: Re: Unixtime function?...
  In-Reply-To: <20010502144404.A20145@cc.usu.edu>
  References: <5.0.2.1.0.20010502084535.0413d790@mekong.connections.yk.ca> <20010502141107.A19986@cc.usu.edu> <5.0.2.1.0.20010502131806.03c914b0@mekong.connections.yk.ca> <20010502144404.A20145@cc.usu.edu>

* 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