Fwd: Re: php, time and postgresql

Поиск
Список
Период
Сортировка
От Mark Lane
Тема Fwd: Re: php, time and postgresql
Дата
Msg-id 0101121604530C.10836@mark
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Niral Trivedi
Дата:
Сообщение: ODBC connect in ERWin
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Time Formats