Search Postgresql Archives

any built-in function to get time in seconds?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have been using this one liner c function that I call my_now() to
get the number of seconds since some fixed point in the past.  I find
it more convenient than built-in now()
and if I want abstime I do abstime(my_now()).   Thing is everytime I
do a major version upgrade I had to recompile this and it's a pain in
the neck.  I feel there must be something
built-in with pg to get the same thing since I can get abstime from it
like that.

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux