Re: Datetime

Поиск
Список
Период
Сортировка
От Achilleus Mantzios
Тема Re: Datetime
Дата
Msg-id Pine.LNX.4.44.0408031319490.7249-100000@matrix.gatewaynet.com
обсуждение исходный текст
Ответ на Datetime  ("Pedro B." <pedro.borracha@netcabo.pt>)
Ответы Re: Datetime  (Michael Glaesemann <grzm@myrealbox.com>)
Список pgsql-sql
O kyrios Pedro B. egrapse stis Aug 3, 2004 :

> Hello,
> 
> I'm using a TIMESTAMP column with a now() default which (correctly i 
> assume) uses a 'yyyy-mm-dd hh:mm:ss' format.

Wrong!, timestamp does not use any human readable format to be stored.
Its not like MS* tools where dates/times are actually text.

now() returns the current UNIX (your running UNIX right?) timestamp which 
in turn is
measured in seconds,miliseconds since the epoch.
i.e. 1970-01-01 00:00:00

> 
> Is it possible to make it something like 'yyyy-mm-dd hh:mm:ss:cc' ? 
> (basically, a DATE and a TIME, but with 2 decimal cases on the :cc and 
> not .ccccc as the TIME format.
> 
> Thanks,
> \\pb
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
>       joining column's datatypes do not match
> 

-- 
-Achilleus



В списке pgsql-sql по дате отправления:

Предыдущее
От: Devrim GUNDUZ
Дата:
Сообщение: Re: Datetime
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: Datetime