Re: Extracting time from timestamp

From: "Shridhar Daithankar<shridhar_daithankar(at)persistent(dot)co(dot)in>" <shridhar_daithankar(at)persistent(dot)co(dot)in>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Extracting time from timestamp
Date: 2003-03-21 03:29:39
Message-ID: 200303210859.39903.shridhar_daithankar@persistent.co.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Friday 21 Mar 2003 12:04 am, Darren Ferguson wrote:
> If the field is definately a timestamp field just do the following
>
> SELECT TO_CHAR(stime,'HH24:MI') FROM bookings;

Problem is I want timestamp out of it, not char. representation because I have
to compare quite a few of them. That's where I am stuck..

Shridhar

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas T. Thai 2003-03-21 04:51:22 pg_restore and adding a column
Previous Message Thomas T. Thai 2003-03-21 02:54:28 Re: TSearch Related? - ERROR: datumGetSize: Invalid typLen

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2003-03-21 03:54:24 Re: ALTER TABLE / CLUSTER ON
Previous Message Christopher Kings-Lynne 2003-03-21 03:21:16 ALTER TABLE / CLUSTER ON