Pass timestamp back from c-function

From: Marc Wrubleski <mlwruble(at)sorexsoftware(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Pass timestamp back from c-function
Date: 2001-04-19 18:29:30
Message-ID: 3ADF2E8A.3909C986@sorexsoftware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello fellow Postgres Users,

I have a C-function that determines a time and passes that time back via
a text type. I would like to convert the function to pass back a
timestamp type, but am a little unclear on what exactly a timestamp type
is.

Can any one offer my any pointers?

create function fn_GetMyTimestamp(text, int) returns timestamp as
'/path/to/so' language 'C';

in .so

timestamp fn_GetMyTimestamp(text, int)

Thanks.

Marc Wrubleski
Sorex Software Inc.
403 371-7598

Browse pgsql-general by date

  From Date Subject
Next Message Matthew Hixson 2001-04-19 18:34:23 Re: syntax error 44 : ->
Previous Message Trond Eivind =?iso-8859-1?q?Glomsr=F8d?= 2001-04-19 18:26:20 Re: locale & glibc 2.2.2