<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Forum PostgreSQL - Problem z date/time type]]></title>
		<link>https://forum.postgresql.org.pl/viewtopic.php?id=402</link>
		<description><![CDATA[Najświeższe odpowiedzi w Problem z date/time type.]]></description>
		<lastBuildDate>Wed, 17 Feb 2010 07:06:18 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Odp: Problem z date/time type]]></title>
			<link>https://forum.postgresql.org.pl/viewtopic.php?pid=1852#p1852</link>
			<description><![CDATA[Cześć,

łatwiej jest ustawić kolumnę w tabeli jako 
type timestamp(0) without time zone.
O tyle wygodniejsze rozwiązanie, że przy każdym insert ... now(), wpisuje do tabeli wartości YYYY-MM-DD GG:MM:SS.

Dzięki.
Pozdrawiam.]]></description>
			<author><![CDATA[dummy@example.com (gintor)]]></author>
			<pubDate>Wed, 17 Feb 2010 07:06:18 +0000</pubDate>
			<guid>https://forum.postgresql.org.pl/viewtopic.php?pid=1852#p1852</guid>
		</item>
		<item>
			<title><![CDATA[Odp: Problem z date/time type]]></title>
			<link>https://forum.postgresql.org.pl/viewtopic.php?pid=1846#p1846</link>
			<description><![CDATA[[quote=gintor]Cześć,

mam taki problem potrzebuje daty w formacie
'RRRR-MM-DD GG:MM:SS'.
Oczywiście da się to zrobić w funkcji, subtringiem wyciąć nie potrzebne rzeczy, ale może wiecie jak to zrobić używajac 'without time zone' ???

Przykładowo select now() daje 2010-02-11 13:00:00.989760+01.

a ma być   2010-02-11 13:00:00 

Pozdrawiam.[/quote]

np. tak:
select to_char(now(), 'YYYY-MM-DD  HH24:MI:SS')

Pozdrawiam]]></description>
			<author><![CDATA[dummy@example.com (6nom)]]></author>
			<pubDate>Tue, 16 Feb 2010 15:35:52 +0000</pubDate>
			<guid>https://forum.postgresql.org.pl/viewtopic.php?pid=1846#p1846</guid>
		</item>
		<item>
			<title><![CDATA[Problem z date/time type]]></title>
			<link>https://forum.postgresql.org.pl/viewtopic.php?pid=1845#p1845</link>
			<description><![CDATA[Cześć,

mam taki problem potrzebuje daty w formacie
'RRRR-MM-DD GG:MM:SS'.
Oczywiście da się to zrobić w funkcji, subtringiem wyciąć nie potrzebne rzeczy, ale może wiecie jak to zrobić używajac 'without time zone' ???

Przykładowo select now() daje 2010-02-11 13:00:00.989760+01.

a ma być   2010-02-11 13:00:00 

Pozdrawiam.]]></description>
			<author><![CDATA[dummy@example.com (gintor)]]></author>
			<pubDate>Tue, 16 Feb 2010 12:07:25 +0000</pubDate>
			<guid>https://forum.postgresql.org.pl/viewtopic.php?pid=1845#p1845</guid>
		</item>
	</channel>
</rss>
