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. (view raw or whole thread)
Lists: pgsql-novice
How can I convert a VARCHAR(25) to a timestamp? Including a fraction of a

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


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-2015 The PostgreSQL Global Development Group