Re: [SQL] epoch to show millseconds

From: Grant <grant(at)conprojan(dot)com(dot)au>
To: pgsql-sql(at)postgresql(dot)org
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [SQL] epoch to show millseconds
Date: 2001-07-17 22:33:02
Message-ID: Pine.LNX.4.21.0107180831300.6081-100000@webster.conprojan.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

> Hi All
>
> I've searched the archives, but it seems that there's no mention of this.
> Basically, what I want to do is to show the milliseconds value.

FAQ: How can I select the time with milliseconds?

binary_data=# select date_part('millisecond', timeofday()::timestamp);
date_part
------------------
534.253999999997

A person asked this question a while back in #Postgresql on IRC EFNet.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Nils Zonneveld 2001-07-17 22:40:07 Re: PG rules!
Previous Message Keith F Irwin 2001-07-17 22:20:49 HELP! BUG? pg_dump mucks up grant/revoke

Browse pgsql-sql by date

  From Date Subject
Next Message Chris Ruprecht 2001-07-17 22:45:33 Re: PL/PGSQL and external (flat ASCII) files - Urgent ... :)
Previous Message Wei Weng 2001-07-17 21:59:11 Re: PL/PGSQL and external (flat ASCII) files - Urgent ... :)