Re: Unixtime function?... - Mailing list pgsql-php

From Roberto Mello
Subject Re: Unixtime function?...
Date
Msg-id 20010502144404.A20145@cc.usu.edu
Whole thread Raw
In response to Re: Unixtime function?...  (Richard Whittaker <richard@connections.yk.ca>)
List pgsql-php
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

pgsql-php by date:

Previous
From: Matthew Kolb
Date:
Subject: Re: Unixtime function?...
Next
From: "Gyozo Papp"
Date:
Subject: Re: Unixtime function?...