<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - Problem z TIME.]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=221&amp;type=atom"/>
	<updated>2009-06-03T19:02:38Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=221</id>
		<entry>
			<title type="html"><![CDATA[Odp: Problem z TIME.]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=927#p927"/>
			<content type="html"><![CDATA[Jak masz typ time to sie nie da sekund uciąć. Ale podczas wypisywania zawartosc komórek możesz skorzytsać z z date_part lub date_trunc. Tu masz opisane
[url]http://www.postgresql.org/docs/current/static/functions-datetime.html[/url]
[url]http://www.postgresql.org/docs/current/static/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC[/url]]]></content>
			<author>
				<name><![CDATA[rski]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=26</uri>
			</author>
			<updated>2009-06-03T19:02:38Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=927#p927</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Problem z TIME.]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=926#p926"/>
			<content type="html"><![CDATA[Witam wszystkich.

Mój problem polega na wyświetlaniu niepotrzebnej części typu TIME w postgres.

Przykład :
[quote]
CREATE TABLE trasat (
    idtrasy integer NOT NULL,
    idprzystanku integer NOT NULL,
    dni_robocze time without time zone,
    soboty time without time zone,
    niedziele time without time zone
);
[/quote]

Potem wykonuje inserta:

[quote]insert into trasat values(3,1,'04:35',null,null);
[/quote]
to pokazuje mi się w bazie :
[quote]04:35:00[/quote]

Chciałbym żeby tylko jedynie godzina i minuty się wyświetlały.

Pozdrawiam]]></content>
			<author>
				<name><![CDATA[kazach11]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=917</uri>
			</author>
			<updated>2009-06-03T18:27:19Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=926#p926</id>
		</entry>
</feed>
