Time Conversion

From: "Ryan Sommers" <ryans(at)gamersimpact(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Time Conversion
Date: 2005-03-23 21:07:29
Message-ID: 1253.66.166.104.222.1111612049.squirrel@66.166.104.222
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

How can I convert a VARCHAR(25) to a timestamp? Including a fraction of a
second.

The VARCHAR(25) column is in the form: YYYY-MM-DD HH:MI:SS.fffff
where fffff is the fraction of a second.

I could use to_timestamp but I can't find a conversion specifier for the
fractional part.

--
Ryan Sommers
ryans(at)gamersimpact(dot)com

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Jon Allen 2005-03-23 21:48:23 Re: 8.0 installs ok, but then...
Previous Message Tom Lane 2005-03-23 19:15:09 Re: 8.0 installs ok, but then...