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

From Matthew Kolb
Subject Re: Unixtime function?...
Date
Msg-id 20010502162301.A54232@phaedrus.gaslightmedia.com
Whole thread Raw
In response to Unixtime function?...  (Richard Whittaker <richard@connections.yk.ca>)
List pgsql-php
On Wed, May 02, 2001 at 08:49:32AM -0700, Richard Whittaker wrote:
> In MySQL there is a function to convert an arbitrary date/time combination
> to a Unix timestamp, which makes it really easy to perform calculations in
> PHP, since the result was always an integer... Is there a similar function
> out there for PostgresSQL or PHP?...

well in php you can use date(),
http://www.php.net/manual/en/function.date.php

and all the time functions in php
http://www.php.net/manual/en/ref.datetime.php

and in postgres you can use functions like date_part()
http://www.postgresql.org/docs/aw_pgsql_book/node92.html#7786

that would be a good start.

./muk

--
Matthew Kolb
muk@phaedrus.gaslightmedia.com

pgsql-php by date:

Previous
From: Roberto Mello
Date:
Subject: Re: Unixtime function?...
Next
From: Roberto Mello
Date:
Subject: Re: Unixtime function?...