470,581 Members | 2,375 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,581 developers. It's quick & easy.

problem with timeofday() function in cvs PostgreSQL

Hello

In this version I can't convert returned value to time. timeofday() return
text. I need convert to timestamp before. It is normal behavior? I
expected timestamp as returned type.

regards

Pavel Stehule
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 11 '05 #1
1 1545
On Fri, 8 Aug 2003, Pavel Stehule wrote:
In this version I can't convert returned value to time. timeofday() return
text. I need convert to timestamp before. It is normal behavior? I
expected timestamp as returned type.


It is documented to return a string for historical reasons:

http://www.postgresql.org/docs/7.3/s...TETIME-CURRENT

You probably want now() instead of that function.

--
/Dennis
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 11 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Sam Snead | last post: by
22 posts views Thread by Marina | last post: by
2 posts views Thread by Vilson farias | last post: by
4 posts views Thread by Peter | last post: by
10 posts views Thread by scorpion53061 | last post: by
7 posts views Thread by Heiko Pohl | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.