Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group