Fwd: Re: php, time and postgresql - Mailing list pgsql-general

From Mark Lane
Subject Fwd: Re: php, time and postgresql
Date
Msg-id 0101121604530C.10836@mark
Whole thread Raw
List pgsql-general

----------  Forwarded Message  ----------
Subject: Re: [GENERAL] php, time and postgresql
Date: Fri, 12 Jan 2001 14:13:21 -0700
From: Mark Lane <mlane@mynewthing.com>
To: Rasmus Resen Amossen <spunk@rhk.dk>


On Friday 12 January 2001 14:03, you wrote:
> I want to save some time information in postgresql with php. What is the
> datatype in postgresql coresponding to the mktime()-unixtime function in
> php (creates a time in the format "979333398" eg.)?
>
> Thanx!

 If you want to save time in that format just use an int4. All you have there
is an integer value so you will not need a special datatype. With datetime
information you only need a special datatypes when you storing information in
a form such as provided by timestamp.

Mark

-------------------------------------------------------

pgsql-general by date:

Previous
From: Niral Trivedi
Date:
Subject: ODBC connect in ERWin
Next
From: Bruno Wolff III
Date:
Subject: Re: Time Formats