Re: extending Now() information

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Vilson farias <vilson(dot)farias(at)digitro(dot)com(dot)br>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: extending Now() information
Date: 2002-06-13 20:01:10
Message-ID: 1023998470.371.51.camel@lerlaptop
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 2002-06-13 at 14:37, Vilson farias wrote:
> Greetings,
>
> I was wondering how could Now() procedure shows the timestamp with miliseconds information. Is it possible?
>
> select now();
> Result : 2002-06-13 19:33:23.35+00 instead of 2002-06-13 19:33:23+00.
It's there:
$ psql
Welcome to psql, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help on internal slash commands
\g or terminate with semicolon to execute query
\q to quit

ler=# select now();
now
-------------------------------
2002-06-13 15:00:25.420657-05
(1 row)

ler=# select version();
version
---------------------------------------------------------------------
PostgreSQL 7.2.1 on i386-portbld-freebsd4.6, compiled by GCC 2.95.3
(1 row)

ler=#

>
> Thanks in advance.
>
>
> --------------------------------------------------------------------------------
> José Vilson de Mello de Farias
> Analista de Sistemas
>
> Dígitro Tecnologia Ltda - www.digitro.com.br
> APC - Aplicativos Orientados ao Cliente
> E-mail: vilson(dot)farias(at)digitro(dot)com(dot)br
> Tel.: +55 48 281 7158
> ICQ 11866179
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Jenkins 2002-06-13 20:08:25 Re: Trying to get rid of a type
Previous Message Justin Clift 2002-06-13 19:59:12 jobs.postgresql.org - Who's interested?