Re: Now() function

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: Now() function
Дата
Msg-id 71A4C80A-D54D-480E-8DA8-F6769C74C155@myrealbox.com
обсуждение исходный текст
Ответ на Now() function  (David Siebert <david@eclipsecat.com>)
Список pgsql-general
On Jun 11, 2005, at 5:28 AM, David Siebert wrote:

> Quick question. can you set timestamptz to no fractional seconds?

The docs are very useful for things like this:
http://www.postgresql.org/docs/7.4/interactive/datatype-datetime.html

-------------
Name          timestamp [ (p) ]          timestamp [ (p) ]
                 [ without time zone ]      with time zone
Storage Size  8 bytes                    8 bytes
Description   both date and time         both date and time, with
time zone
Low Value     4713 BC                    4713 BC
High Value    5874897 AD                 5874897 AD
Resolution    1 microsecond / 14 digits  1 microsecond / 14 digits

<snip />

time, timestamp, and interval accept an optional precision value p
which specifies the number of fractional digits retained in the
seconds field. By default, there is no explicit bound on precision.
The allowed range of p is from 0 to 6 for the timestamp and interval
types.
-------------

Please always cc the list so others may be able to help, and please
don't top post.

Michael Glaesemann
grzm myrealbox com

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

Предыдущее
От: "Sean Davis"
Дата:
Сообщение: Re: return next and pl/perl
Следующее
От: "Thomas F. O'Connell"
Дата:
Сообщение: Re: CPU-intensive autovacuuming