Re: Undocumented datetime functions

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Undocumented datetime functions
Дата
Msg-id Pine.LNX.4.30.0102171729060.933-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: Undocumented datetime functions  (Thomas Lockhart <lockhart@alumni.caltech.edu>)
Список pgsql-docs
Thomas Lockhart writes:

> > I'm confused about tz_hour and tz_minute.  Are the regular 'hour' and
> > 'minute' time zone asensitive?
>
> Regular hour and minute arguments return values interpreted in the
> currently valid time zone, except for types which have no affiliated
> time zone (e.g. "time").
>
> tz_hour and tz_minute return the hour and minutes fields of the current
> time zone, or stored time zone for the timetz type.

Hmm, I'm confused.  The timestamp type doesn't actually have a time zone
stored, does it?  Why did you want it to be dumped as "timestamp with time
zone" then?

Also, it's not possible to cast "time with time zone" to "timestamp", so
it's not possible to make real use of extract(timezone_... ).

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Undocumented datetime functions
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: Undocumented datetime functions