pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: omid omoomi <oomoomi@hotmail.com>
To: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] datetime fields have '60' in seconds field
Date: Wed, 05 Jan 2000 00:37:42 PST
Message-ID: <20000105083742.37012.qmail@hotmail.com> (raw)

Hi,
I've just done the same case on my computer, seems that every thing is OK! :
( using freebsd  3.2 , pg 6.5.2 )
isp=> create table test( f1 text , f2 datetime);
CREATE
isp=> insert into test values('aaa','1999-12-31 12:05:40');
INSERT 51099 1
isp=> insert into test values('bbb','1999-12-31 12:05:00');
INSERT 51100 1
isp=> select * from test ;
f1 |f2
---+----------------------------
aaa|Fri Dec 31 12:05:40 1999 IRT
bbb|Fri Dec 31 12:05:00 1999 IRT
(2 rows)

--------------------


regards.
omid omoomi


>From: Werner Fraga <werner.fraga@computalog.com>
>Reply-To: werner.fraga@computalog.com
>To: pgsql-sql@postgreSQL.org
>Subject: [SQL] datetime fields have '60' in seconds field
>Date: Fri, 31 Dec 1999 13:18:18 -0700
>
>When a DATETIME field is modified and the seconds are set to zero, the 
>field
>always shows 60 seconds instead:
>
>testdb=> create table datetab (dt datetime);
>CREATE
>testdb=> insert into datetab (dt) values ('1999-12-31 12:05:00');
>INSERT 27361 1
>testdb=> select * from datetab;
>dt
>--------------------------
>31/12/1999 12:05:60.00 MST
>(1 row)
>
>I am using Linux Mandrake 6.1, Postgres 6.5.1-7mdk, glibc 2.1.1-16mdk, 
>kernel
>2.2.13-7mdk
>
>
>************
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com




view thread (5+ messages)  latest in thread

Message-ID: <20000105083742.37012.qmail@hotmail.com>
Permalink:  ../20000105083742.37012.qmail@hotmail.com/
Also on:    postgresql.org/message-id/20000105083742.37012.qmail@hotmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: oomoomi@hotmail.com
  Subject: Re: [SQL] datetime fields have '60' in seconds field
  In-Reply-To: <20000105083742.37012.qmail@hotmail.com>
  References: <20000105083742.37012.qmail@hotmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox